SFLogging Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | SFLogger.h |
componentName
required method
Component name associated with this logger.
@property (nonatomic, readonly, strong, nonnull) NSString *componentName
Declared In
SFLogger.h
logger
required method
Instance of the underlying logger implementation being used.
@property (nonatomic, readonly, strong, nonnull) id logger
Declared In
SFLogger.h
logLevel
required method
Used to get and set the current log level associated with this logger.
@property (nonatomic, readwrite, assign) SFLogLevel logLevel
Declared In
SFLogger.h
– initWithComponent:
required method
Initialize a logger given component Name.
- (instancetype)initWithComponent:(NSString *)componentName
Return Value
Instance of this class.
Declared In
SFLogger.h
– log:level:message:
required method
Logs a log line of the specified level.
- (void)log:(nonnull Class)cls level:(SFLogLevel)level message:(nonnull NSString *)message
Parameters
cls |
Class. |
---|---|
level |
Log level. |
message |
Log message. |
Declared In
SFLogger.h
– log:level:format:
required method
Logs a log line of the specified level.
- (void)log:(nonnull Class)cls level:(SFLogLevel)level format:(nonnull NSString *)format, ...
Parameters
cls |
Class. @level Log level. |
---|---|
format |
The format message, and optional arguments to expand in the format. |
... |
The arguments to the message format string. |
Declared In
SFLogger.h
– log:level:format:args:
required method
Logs a log line of the specified level.
- (void)log:(Class)cls level:(SFLogLevel)level format:(NSString *)format args:(va_list)args
Parameters
cls |
Class. @level Log level. |
---|---|
format |
The format message, and optional arguments to expand in the format. |
args |
The arguments to the message format string. |
Declared In
SFLogger.h
+ sharedInstanceWithComponent:
+ (nonnull instancetype)sharedInstanceWithComponent:(nonnull NSString *)componentName