GBLog Class Reference
Inherits from | NSObject |
Declared in | GBLog.h GBLog.m |
Tasks
Other Methods
-
+ setLogLevel:
Sets logging level to the given value. -
+ setLogLevelFromVerbose:
Sets logging level from the given verbose command line argument value. -
+ logFormatterForLogFormat:
Returns proper log formatter based on the given log format command line argument value.
Other Methods
-
+ setLogLevel:
Sets logging level to the given value. -
+ setLogLevelFromVerbose:
Sets logging level from the given verbose command line argument value. -
+ logFormatterForLogFormat:
Returns proper log formatter based on the given log format command line argument value.
Class Methods
logFormatterForLogFormat:
Returns proper log formatter based on the given log format command line argument value.
+ (id<DDLogFormatter>)logFormatterForLogFormat:(NSString *)level
Parameters
- level
- Log format command line argument value to use.
Return Value
Returns the log formatter corresponding to the given value.
Discussion
The method returns GBLogFormat0Formatter
, GBLogFormat1Formatter
, GBLogFormat2Formatter
, GBLogFormat3Formatter
or GBLogFormat4Formatter
instance, based on the given value. The value is forced into a valid range beforehand.
Declared In
GBLog.h
setLogLevel:
Sets logging level to the given value.
+ (void)setLogLevel:(NSUInteger)value
Parameters
- value
- The new application-wide log level.
Discussion
Sending this message has the same effect as setting the value of kGBLogLevel
directly.
See Also
Declared In
GBLog.h
setLogLevelFromVerbose:
Sets logging level from the given verbose command line argument value.
+ (void)setLogLevelFromVerbose:(NSString *)verbosity
Parameters
- verbosity
- Verbose command line argument value to use.
Discussion
The method converts the given command line argument value to a proper log level and sends it to @c setLogLevel: method. The value is forced into a valid range beforehand.
Declared In
GBLog.h