diff --git a/Sources/StORM/StORM.swift b/Sources/StORM/StORM.swift index 6903f37..6162c8f 100644 --- a/Sources/StORM/StORM.swift +++ b/Sources/StORM/StORM.swift @@ -7,11 +7,6 @@ // 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. /// Provides base functionality and rules. open class StORM { diff --git a/Sources/StORM/StORMDebug.swift b/Sources/StORM/StORMDebug.swift new file mode 100644 index 0000000..1e782f0 --- /dev/null +++ b/Sources/StORM/StORMDebug.swift @@ -0,0 +1,20 @@ +// +// 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 + + /// The location of the log file. + /// The default location is relative, "StORMlog.txt" + public static var location = "./StORMlog.txt" +}