Moving global StORMdebug variable under new StORMDebug struct
This commit is contained in:
parent
653f4bdfa6
commit
6a5ad420a6
|
@ -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 {
|
||||||
|
|
|
@ -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
|
||||||
|
}
|
Loading…
Reference in New Issue