Moving global StORMdebug variable under new StORMDebug struct

This commit is contained in:
Josef Zoller 2018-10-09 23:25:52 +02:00
parent 653f4bdfa6
commit 6a5ad420a6
2 changed files with 16 additions and 5 deletions

View File

@ -7,11 +7,6 @@
// April 6, 2017: 1.0.3, add support for storing [String] as comma delimited strings // April 6, 2017: 1.0.3, add support for storing [String] as comma delimited strings
/// Variable defining the global debug state for all classes inheriting from the StORM superclass.
/// When true, certain methods will generate a debug message under certain conditions.
public var StORMdebug = false
/// Base StORM superclass from which all Database-Connector StORM classes inherit. /// Base StORM superclass from which all Database-Connector StORM classes inherit.
/// Provides base functionality and rules. /// Provides base functionality and rules.
open class StORM { open class StORM {

View File

@ -0,0 +1,16 @@
//
// StORMDebug.swift
// StORM
//
// Created by Josef Zoller on 09.10.18.
//
/// StORMDebug sets, whether or not some methods of StORM classes generate debug messages
/// and where the log file is located
public struct StORMDebug {
private init(){}
/// The global debug state for all classes inheriting from the StORM superclass.
/// When true, certain methods will generate a debug message under certain conditions.
public static var active = false
}