Log utility class. More...
Instance Methods | |
(instancetype) | - init |
Class Methods | |
(void) | + addProvider: |
Registers a log provider as a logging target. More... | |
(void) | + addProvider:level: |
Registers a log provider as a logging target, setting its log level in the process. More... | |
(void) | + debugWithContext:message: |
Logs a debug-level message. More... | |
(void) | + debugWithContext:message:ex: |
Logs a debug-level message. More... | |
(void) | + debugWithMessage: |
Logs a debug-level message. More... | |
(void) | + debugWithMessage:ex: |
Logs a debug-level message. More... | |
(FMLiveSwitchLogLevel) | + defaultLogLevel |
Gets the default log level. More... | |
(void) | + errorWithContext:message: |
Logs an error-level message. More... | |
(void) | + errorWithContext:message:ex: |
Logs an error-level message. More... | |
(void) | + errorWithMessage: |
Logs an error-level message. More... | |
(void) | + errorWithMessage:ex: |
Logs an error-level message. More... | |
(void) | + fatalWithContext:message: |
Logs a fatal-level message. More... | |
(void) | + fatalWithContext:message:ex: |
Logs a fatal-level message. More... | |
(void) | + fatalWithMessage: |
Logs a fatal-level message. More... | |
(void) | + fatalWithMessage:ex: |
Logs a fatal-level message. More... | |
(void) | + flush |
Blocks until all logs are written out. More... | |
(NSObject< FMLiveSwitchILog > *) | + getLoggerWithTag: |
Get a logger for a specific Tag. More... | |
(NSObject< FMLiveSwitchILog > *) | + getLoggerWithTag:level: |
Get a logger for a specific Tag. More... | |
(NSObject< FMLiveSwitchILog > *) | + getLoggerWithType: |
Get a logger for a specific Tag. More... | |
(NSObject< FMLiveSwitchILog > *) | + getLoggerWithType:level: |
Get a logger for a specific Tag. More... | |
(void) | + infoWithContext:message: |
Logs an info-level message. More... | |
(void) | + infoWithContext:message:ex: |
Logs an info-level message. More... | |
(void) | + infoWithMessage: |
Logs an info-level message. More... | |
(void) | + infoWithMessage:ex: |
Logs an info-level message. More... | |
(bool) | + isDebugEnabled |
Gets a value indicating whether logging is enabled for debug-level messages for at least one of the registered providers. More... | |
(bool) | + isErrorEnabled |
Gets a value indicating whether logging is enabled for error-level messages for at least one of the registered providers. More... | |
(bool) | + isFatalEnabled |
Gets a value indicating whether logging is enabled for fatal-level messages for at least one of the registered providers. More... | |
(bool) | + isInfoEnabled |
Gets a value indicating whether logging is enabled for info-level messages for at least one of the registered providers. More... | |
(bool) | + isVerboseEnabled |
Gets a value indicating whether logging is enabled for verbose-level messages for at least one of the registered providers. More... | |
(bool) | + isWarnEnabled |
Gets a value indicating whether logging is enabled for warn-level messages for at least one of the registered providers. More... | |
(FMLiveSwitchLog *) | + log |
(FMLiveSwitchLogLevel) | + logLevel |
Gets the default log level. More... | |
(FMLiveSwitchLogProvider *) | + provider |
Gets the first log provider. More... | |
(NSMutableArray *) | + providers |
Gets the log providers. More... | |
(void) | + registerProvider: |
Registers a log provider as a logging target. More... | |
(void) | + registerProvider:level: |
Registers a log provider as a logging target, setting its log level in the process. More... | |
(bool) | + removeProvider: |
Unregisters a log provider as a logging target. More... | |
(void) | + removeProviders |
Unregisters all log providers as logging targets. More... | |
(void) | + setDefaultLogLevel: |
Sets the default log level. More... | |
(void) | + setLogLevel: |
Sets the default log level. More... | |
(void) | + setProvider: |
Sets the first log provider. More... | |
(void) | + setTagOverrideWithTag:level: |
Override the default log level for a specific tag. More... | |
(bool) | + unregisterProvider: |
Unregisters a log provider as a logging target. More... | |
(void) | + unregisterProviders |
Unregisters all log providers as logging targets. More... | |
(void) | + verboseWithContext:message: |
Logs a verbose-level message. More... | |
(void) | + verboseWithContext:message:ex: |
Logs a verbose-level message. More... | |
(void) | + verboseWithMessage: |
Logs a verbose-level message. More... | |
(void) | + verboseWithMessage:ex: |
Logs a verbose-level message. More... | |
(void) | + warnWithContext:message: |
Logs a warn-level message. More... | |
(void) | + warnWithContext:message:ex: |
Logs a warn-level message. More... | |
(void) | + warnWithMessage: |
Logs a warn-level message. More... | |
(void) | + warnWithMessage:ex: |
Logs a warn-level message. More... | |
(void) | + writeLineWithText: |
Writes a line of text to the log. More... | |
Log utility class.
+ (void) addProvider: | (FMLiveSwitchLogProvider *) | provider |
Registers a log provider as a logging target.
Alias for RegisterProvider.
provider | The new provider. |
+ (void) addProvider: | (FMLiveSwitchLogProvider *) | provider | |
level: | (FMLiveSwitchLogLevel) | level | |
Registers a log provider as a logging target, setting its log level in the process.
Alias for RegisterProvider.
provider | The new provider. |
level | The log level. |
+ (void) debugWithContext: | (FMLiveSwitchLogContext *) | context | |
message: | (NSString *) | message | |
Logs a debug-level message.
message | The message. |
context | The log context. |
+ (void) debugWithContext: | (FMLiveSwitchLogContext *) | context | |
message: | (NSString *) | message | |
ex: | (NSException *) | ex | |
Logs a debug-level message.
message | The message. |
ex | The exception. |
context | The log context. |
+ (void) debugWithMessage: | (NSString *) | message |
Logs a debug-level message.
message | The message. |
+ (void) debugWithMessage: | (NSString *) | message | |
ex: | (NSException *) | ex | |
Logs a debug-level message.
message | The message. |
ex | The exception. |
+ (FMLiveSwitchLogLevel) defaultLogLevel |
Gets the default log level.
+ (void) errorWithContext: | (FMLiveSwitchLogContext *) | context | |
message: | (NSString *) | message | |
Logs an error-level message.
message | The message. |
context | The log context. |
+ (void) errorWithContext: | (FMLiveSwitchLogContext *) | context | |
message: | (NSString *) | message | |
ex: | (NSException *) | ex | |
Logs an error-level message.
message | The message. |
ex | The exception. |
context | The log context. |
+ (void) errorWithMessage: | (NSString *) | message |
Logs an error-level message.
message | The message. |
+ (void) errorWithMessage: | (NSString *) | message | |
ex: | (NSException *) | ex | |
Logs an error-level message.
message | The message. |
ex | The exception. |
+ (void) fatalWithContext: | (FMLiveSwitchLogContext *) | context | |
message: | (NSString *) | message | |
Logs a fatal-level message.
message | The message. |
context | The log context. |
+ (void) fatalWithContext: | (FMLiveSwitchLogContext *) | context | |
message: | (NSString *) | message | |
ex: | (NSException *) | ex | |
Logs a fatal-level message.
message | The message. |
ex | The exception. |
context | The log context. |
+ (void) fatalWithMessage: | (NSString *) | message |
Logs a fatal-level message.
message | The message. |
+ (void) fatalWithMessage: | (NSString *) | message | |
ex: | (NSException *) | ex | |
Logs a fatal-level message.
message | The message. |
ex | The exception. |
+ (void) flush |
Blocks until all logs are written out.
+ (NSObject<FMLiveSwitchILog>*) getLoggerWithTag: | (NSString *) | tag |
Get a logger for a specific Tag.
tag | The tag to log to. |
+ (NSObject<FMLiveSwitchILog>*) getLoggerWithTag: | (NSString *) | tag | |
level: | (FMLiveSwitchLogLevel) | level | |
Get a logger for a specific Tag.
tag | The tag to log to. |
level | Logger's default log level. |
+ (NSObject<FMLiveSwitchILog>*) getLoggerWithType: | (Class) | type |
Get a logger for a specific Tag.
The tag is taken from the class namespace and name.
type | The type to use as the tag. |
+ (NSObject<FMLiveSwitchILog>*) getLoggerWithType: | (Class) | type | |
level: | (FMLiveSwitchLogLevel) | level | |
Get a logger for a specific Tag.
The tag is taken from the class namespace and name.
type | The type to use as the tag. |
level | Logger's default log level. |
+ (void) infoWithContext: | (FMLiveSwitchLogContext *) | context | |
message: | (NSString *) | message | |
Logs an info-level message.
message | The message. |
context | The log context. |
+ (void) infoWithContext: | (FMLiveSwitchLogContext *) | context | |
message: | (NSString *) | message | |
ex: | (NSException *) | ex | |
Logs an info-level message.
message | The message. |
ex | The exception. |
context | The log context. |
+ (void) infoWithMessage: | (NSString *) | message |
Logs an info-level message.
message | The message. |
+ (void) infoWithMessage: | (NSString *) | message | |
ex: | (NSException *) | ex | |
Logs an info-level message.
message | The message. |
ex | The exception. |
- (instancetype) init |
+ (bool) isDebugEnabled |
Gets a value indicating whether logging is enabled for debug-level messages for at least one of the registered providers.
+ (bool) isErrorEnabled |
Gets a value indicating whether logging is enabled for error-level messages for at least one of the registered providers.
+ (bool) isFatalEnabled |
Gets a value indicating whether logging is enabled for fatal-level messages for at least one of the registered providers.
+ (bool) isInfoEnabled |
Gets a value indicating whether logging is enabled for info-level messages for at least one of the registered providers.
+ (bool) isVerboseEnabled |
Gets a value indicating whether logging is enabled for verbose-level messages for at least one of the registered providers.
+ (bool) isWarnEnabled |
Gets a value indicating whether logging is enabled for warn-level messages for at least one of the registered providers.
+ (FMLiveSwitchLog*) log |
+ (FMLiveSwitchLogLevel) logLevel |
Gets the default log level.
+ (FMLiveSwitchLogProvider*) provider |
Gets the first log provider.
+ (NSMutableArray*) providers |
Gets the log providers.
+ (void) registerProvider: | (FMLiveSwitchLogProvider *) | provider |
Registers a log provider as a logging target.
provider | The provider. |
+ (void) registerProvider: | (FMLiveSwitchLogProvider *) | provider | |
level: | (FMLiveSwitchLogLevel) | level | |
Registers a log provider as a logging target, setting its log level in the process.
provider | The provider. |
level | The log level. |
+ (bool) removeProvider: | (FMLiveSwitchLogProvider *) | provider |
Unregisters a log provider as a logging target.
Alias for UnregisterProvider.
provider | The provider. |
+ (void) removeProviders |
Unregisters all log providers as logging targets.
Alias for UnregisterProviders.
+ (void) setDefaultLogLevel: | (FMLiveSwitchLogLevel) | value |
Sets the default log level.
+ (void) setLogLevel: | (FMLiveSwitchLogLevel) | value |
Sets the default log level.
+ (void) setProvider: | (FMLiveSwitchLogProvider *) | value |
Sets the first log provider.
+ (void) setTagOverrideWithTag: | (NSString *) | tag | |
level: | (FMLiveSwitchLogLevel) | level | |
Override the default log level for a specific tag.
tag | The Tag to set the log level to. |
level | The new loglevel to use. |
+ (bool) unregisterProvider: | (FMLiveSwitchLogProvider *) | provider |
Unregisters a log provider as a logging target.
provider | The provider. |
+ (void) unregisterProviders |
Unregisters all log providers as logging targets.
+ (void) verboseWithContext: | (FMLiveSwitchLogContext *) | context | |
message: | (NSString *) | message | |
Logs a verbose-level message.
message | The message. |
context | The log context. |
+ (void) verboseWithContext: | (FMLiveSwitchLogContext *) | context | |
message: | (NSString *) | message | |
ex: | (NSException *) | ex | |
Logs a verbose-level message.
message | The message. |
ex | The exception. |
context | The log context. |
+ (void) verboseWithMessage: | (NSString *) | message |
Logs a verbose-level message.
message | The message. |
+ (void) verboseWithMessage: | (NSString *) | message | |
ex: | (NSException *) | ex | |
Logs a verbose-level message.
message | The message. |
ex | The exception. |
+ (void) warnWithContext: | (FMLiveSwitchLogContext *) | context | |
message: | (NSString *) | message | |
Logs a warn-level message.
message | The message. |
context | The log context. |
+ (void) warnWithContext: | (FMLiveSwitchLogContext *) | context | |
message: | (NSString *) | message | |
ex: | (NSException *) | ex | |
Logs a warn-level message.
message | The message. |
ex | The exception. |
context | The log context. |
+ (void) warnWithMessage: | (NSString *) | message |
Logs a warn-level message.
message | The message. |
+ (void) warnWithMessage: | (NSString *) | message | |
ex: | (NSException *) | ex | |
Logs a warn-level message.
message | The message. |
ex | The exception. |
+ (void) writeLineWithText: | (NSString *) | text |
Writes a line of text to the log.
text | The text to write to the log. |