VMMSLogger
Objective-C
@interface VMMSLogger : NSObject
Swift
class VMMSLogger : NSObject
Singleton logging object
Since
1.0-
Declaration
Objective-C
+ (nonnull NSArray<NSString *> *)allLogFiles;
Swift
class func allLogFiles() -> [String]
Return Value
a list of log filenames in the log folder
-
Deletes a log file from the log folder
Declaration
Objective-C
+ (void)deleteLogFile:(nonnull NSString *)logFile;
Swift
class func deleteLogFile(_ logFile: String)
Parameters
logFile
the name of the file to delete
-
Set the log level of the logging singleton
Declaration
Objective-C
+ (void)setLogLevel:(VMMSLogLevel)level;
Swift
class func setLogLevel(_ level: VMMSLogLevel)
Parameters
level
the new level
-
Gets the current log level of the logging singleton
Return Value
the log level
-
Convenience method for logging verbose messages @remark This method does nothing in Release builds
Declaration
Objective-C
+ (void)logVerbose:(nonnull NSString *)msg;
Swift
class func logVerbose(_ msg: String)
Parameters
msg
the message
-
Convenience method for logging debug messages
@remark This method does nothing in Release builds
Declaration
Objective-C
+ (void)logDebug:(nonnull NSString *)msg;
Swift
class func logDebug(_ msg: String)
Parameters
msg
the message
-
Convenience method for logging info messages
Declaration
Objective-C
+ (void)logInfo:(nonnull NSString *)msg;
Swift
class func logInfo(_ msg: String)
Parameters
msg
the message
-
Convenience method for logging warning messages
Declaration
Objective-C
+ (void)logWarn:(nonnull NSString *)msg;
Swift
class func logWarn(_ msg: String)
Parameters
msg
the message
-
Convenience method for logging error messages
Declaration
Objective-C
+ (void)logError:(nonnull NSString *)msg;
Swift
class func logError(_ msg: String)
Parameters
msg
the message
-
Logs a message at the given level, as long as the current log level for the instance is equal or greater than the level
Declaration
Objective-C
+ (void)logMessage:(nonnull NSString *)msg atLevel:(VMMSLogLevel)level;
Swift
class func logMessage(_ msg: String, at level: VMMSLogLevel)
Parameters
msg
the message
level
the log level for the message