SkyVaultLog
This section describes the SkyVaultLog class.
The iOS SDK provides the SkyVaultLog utility that can be used to log messages of different levels of severity, the current log level will determine if the messages are output to the console or not. For example, if the logLevel is set to Info (the default for release builds) logging a debug message will not appear whereas logging a warning message will.
Class declaration
@interface SkyVaultLog : NSObject
Properties
typedef NS_ENUM(NSUInteger, SkyVaultLogLevel) { SkyVaultLogLevelOff = 0, SkyVaultLogLevelError, SkyVaultLogLevelWarning, SkyVaultLogLevelInfo, SkyVaultLogLevelDebug, SkyVaultLogLevelTrace };
Property | Description |
---|---|
@property (nonatomic, assign) SkyVaultLogLevel logLevel | The current level the log is set at. |
To avoid having to access the sharedInstance the following macros are available, they follow the same format as NSLog.
- SkyVaultLogError(...)
- SkyVaultLogWarning(...)
- SkyVaultLogInfo(...)
- SkyVaultLogDebug(...)
- SkyVaultLogTrace(...)