VMMSLogger
@interface VMMSLogger : NSObject
Singleton logging object
Since
1.0-
Declaration
Swift
+ (NSArray<NSString *> *)allLogFiles;
Return Value
a list of log filenames in the log folder
-
Deletes a log file from the log folder
Declaration
Swift
+ (void)deleteLogFile:(NSString *)logFile;
Parameters
logFile
the name of the file to delete
-
Set the log level of the logging singleton
Declaration
Swift
+ (void)setLogLevel:(VMMSLogLevel)level;
Parameters
level
the new level
-
Gets the current log level of the logging singleton
Declaration
Swift
+ (VMMSLogLevel)logLevel;
Return Value
the log level
-
Convenience method for logging verbose messages @remark This method does nothing in Release builds
Declaration
Swift
+ (void)logVerbose:(NSString *)msg;
Parameters
msg
the message
-
Convenience method for logging debug messages
@remark This method does nothing in Release builds
Declaration
Swift
+ (void)logDebug:(NSString *)msg;
Parameters
msg
the message
-
Convenience method for logging info messages
Declaration
Swift
+ (void)logInfo:(NSString *)msg;
Parameters
msg
the message
-
Convenience method for logging warning messages
Declaration
Swift
+ (void)logWarn:(NSString *)msg;
Parameters
msg
the message
-
Convenience method for logging error messages
Declaration
Swift
+ (void)logError:(NSString *)msg;
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
Swift
+ (void)logMessage:(NSString *)msg atLevel:(VMMSLogLevel)level;
Parameters
msg
the message
level
the log level for the message