Base class for all logging provider implementations. More...
Instance Methods | |
| (void) | - doLogWithLogEvent: |
| Logs a message at the specified log level. More... | |
| (FMLiveSwitchFunction1< FMLiveSwitchLogEvent *, id > *) | - filter |
| Gets a filter on the log provider. More... | |
| (NSString *) | - generateLogLineWithLogEvent: |
| Generates a default log line. More... | |
| (NSString *) | - getPrefixWithLevel:includeTimestamp: |
| Converts a log-level to a 5-character string for consistently-spaced character sequences. More... | |
| (instancetype) | - init |
| Initializes a new instance of the FMLiveSwitchLogProvider class using defaultLogLevel (FMLiveSwitchLog) as the log level. More... | |
| (FMLiveSwitchLogLevel) | - level |
| Gets the log level. More... | |
| (void) | - logWithLogEvent: |
| Log a message. More... | |
| (int) | - processId |
| Gets the current process id. More... | |
| (void) | - setFilter: |
| Sets a filter on the log provider. More... | |
| (FMLiveSwitchLogEvent *) | - setFilterBlock |
| Sets a filter on the log provider. More... | |
| (void) | - setFilterBlock: |
| Sets a filter on the log provider. More... | |
| (void) | - setLevel: |
| Sets the log level. More... | |
Class Methods | |
| (NSString *) | + getLogLevelStringWithLevel: |
| Converts a log-level to a 5-character string for consistently-spaced character sequences. More... | |
| (NSString *) | + getPrefixTimestamp: |
| Converts a timestamp to an ISO-8601-formatted string for rendering in a log message (YYYY-MM-DDThh:mm:ss.sssZ). More... | |
| (NSString *) | + getProduct |
| Returns the name of the current product. More... | |
| (FMLiveSwitchLogProvider *) | + logProvider |
| Initializes a new instance of the FMLiveSwitchLogProvider class using defaultLogLevel (FMLiveSwitchLog) as the log level. More... | |
Base class for all logging provider implementations.
| - (void) doLogWithLogEvent: | (FMLiveSwitchLogEvent *) | logEvent |
Logs a message at the specified log level.
| logEvent | The log event details. |
Implemented in FMLiveSwitchTextLogProvider, FMLiveSwitchNullLogProvider, FMLiveSwitchLogStashLogProvider, and FMLiveSwitchLogEventLogProvider.
| - (FMLiveSwitchFunction1<FMLiveSwitchLogEvent*,id>*) filter |
Gets a filter on the log provider.
Returning true will log the event, while returning false will skip it.
| - (NSString*) generateLogLineWithLogEvent: | (FMLiveSwitchLogEvent *) | logEvent |
Generates a default log line.
| logEvent | The log event details. |
| + (NSString*) getLogLevelStringWithLevel: | (FMLiveSwitchLogLevel) | level |
Converts a log-level to a 5-character string for consistently-spaced character sequences.
| level | The log level. |
| + (NSString*) getPrefixTimestamp: | (NSDate *) | timestamp |
Converts a timestamp to an ISO-8601-formatted string for rendering in a log message (YYYY-MM-DDThh:mm:ss.sssZ).
| timestamp | The timestamp. |
| - (NSString*) getPrefixWithLevel: | (FMLiveSwitchLogLevel) | level | |
| includeTimestamp: | (bool) | includeTimestamp | |
Converts a log-level to a 5-character string for consistently-spaced character sequences.
| level | The log level. |
| includeTimestamp | Whether to include a timestamp in the prefix. |
| + (NSString*) getProduct |
Returns the name of the current product.
| - (instancetype) init |
Initializes a new instance of the FMLiveSwitchLogProvider class using defaultLogLevel (FMLiveSwitchLog) as the log level.
Implemented in FMLiveSwitchTextLogProvider, FMLiveSwitchNullLogProvider, and FMLiveSwitchLogEventLogProvider.
| - (FMLiveSwitchLogLevel) level |
Gets the log level.
| + (FMLiveSwitchLogProvider*) logProvider |
Initializes a new instance of the FMLiveSwitchLogProvider class using defaultLogLevel (FMLiveSwitchLog) as the log level.
| - (void) logWithLogEvent: | (FMLiveSwitchLogEvent *) | logEvent |
Log a message.
| logEvent | The log event details. |
| - (int) processId |
Gets the current process id.
| - (void) setFilter: | (FMLiveSwitchFunction1< FMLiveSwitchLogEvent *, id > *) | value |
Sets a filter on the log provider.
Returning true will log the event, while returning false will skip it.
| - (FMLiveSwitchLogEvent*) setFilterBlock |
Sets a filter on the log provider.
Returning true will log the event, while returning false will skip it.
| - (void) setFilterBlock: | (bool(^)(FMLiveSwitchLogEvent *)) | valueBlock |
Sets a filter on the log provider.
Returning true will log the event, while returning false will skip it.
| - (void) setLevel: | (FMLiveSwitchLogLevel) | value |
Sets the log level.