SFLogger Class Reference

Inherits from NSObject
Declared in SFLogger.h

  )

Sets log level to be used by this logger.

@property (nonatomic, readwrite, assign) SFLogLevel logLevel NS_SWIFT_NAME ( level )

Declared In

SFLogger.h

– e:message:

Logs an error log line.

- (void)e:(nonnull Class)cls message:(nonnull NSString *)message

Parameters

cls

Class.

message

Log message.

Declared In

SFLogger.h

– e:format:

Logs an error log line.

- (void)e:(nonnull Class)cls format:(nonnull NSString *)format, ...

Parameters

cls

Class.

format

The format message, and optional arguments to expand in the format.

...

The arguments to the message format string.

Declared In

SFLogger.h

– i:message:

Logs an info log line.

- (void)i:(nonnull Class)cls message:(nonnull NSString *)message

Parameters

cls

Class.

message

Log message.

Declared In

SFLogger.h

– i:format:

Logs an info log line.

- (void)i:(nonnull Class)cls format:(nonnull NSString *)format, ...

Parameters

cls

Class.

format

The format message, and optional arguments to expand in the format.

...

The arguments to the message format string.

Declared In

SFLogger.h

– d:message:

Logs a debug log line.

- (void)d:(nonnull Class)cls message:(nonnull NSString *)message

Parameters

cls

Class.

message

Log message.

Declared In

SFLogger.h

– d:format:

Logs a debug log line.

- (void)d:(nonnull Class)cls format:(nonnull NSString *)format, ...

Parameters

cls

Class.

format

The format message, and optional arguments to expand in the format.

...

The arguments to the message format string.

Declared In

SFLogger.h

– w:format:

Logs a default log line.

- (void)w:(nonnull Class)cls format:(nonnull NSString *)format, ...

Parameters

cls

Class.

format

The format message, and optional arguments to expand in the format.

...

The arguments to the message format string.

Declared In

SFLogger.h

– w:message:

Logs a default log line.

- (void)w:(nonnull Class)cls message:(nonnull NSString *)message

Parameters

cls

Class.

message

Log message.

Declared In

SFLogger.h

– f:message:

Logs a fault log line.

- (void)f:(nonnull Class)cls message:(nonnull NSString *)message

Parameters

cls

Class.

message

Log message.

Declared In

SFLogger.h

– f:format:

Logs a fault log line.

- (void)f:(nonnull Class)cls format:(nonnull NSString *)format, ...

Parameters

cls

Class.

format

The format message, and optional arguments to expand in the format.

...

The arguments to the message format string.

Declared In

SFLogger.h

– log:message:

Logs a log line of the default level.

- (void)log:(nonnull Class)cls message:(nonnull NSString *)message

Parameters

cls

Class.

message

Log message.

Declared In

SFLogger.h

– log:format:

Logs a log line of the default level.

- (void)log:(nonnull Class)cls format:(nonnull NSString *)format, ...

Parameters

cls

Class.

format

The format message, and optional arguments to expand in the format.

...

The arguments to the message format string.

Declared In

SFLogger.h

+ e:format:

Logs an error log line.

+ (void)e:(nonnull Class)cls format:(nonnull NSString *)format, ...

Parameters

cls

Class.

format

The format message, and optional arguments to expand in the format.

...

The arguments to the message format string.

Declared In

SFLogger.h

+ e:message:

Logs an error log line.

+ (void)e:(nonnull Class)cls message:(nonnull NSString *)message

Parameters

cls

Class.

message

Log message.

Declared In

SFLogger.h

+ i:format:

Logs an info log line.

+ (void)i:(nonnull Class)cls format:(nonnull NSString *)format, ...

Parameters

cls

Class.

format

The format message, and optional arguments to expand in the format.

...

The arguments to the message format string.

Declared In

SFLogger.h

+ i:message:

Logs an info log line.

+ (void)i:(nonnull Class)cls message:(nonnull NSString *)message

Parameters

cls

Class.

message

Log message.

Declared In

SFLogger.h

+ d:format:

Logs a debug log line.

+ (void)d:(nonnull Class)cls format:(nonnull NSString *)format, ...

Parameters

cls

Class.

format

The format message, and optional arguments to expand in the format.

...

The arguments to the message format string.

Declared In

SFLogger.h

+ d:message:

Logs a debug log line.

+ (void)d:(nonnull Class)cls message:(nonnull NSString *)message

Parameters

cls

Class.

message

Log message.

Declared In

SFLogger.h

+ w:format:

Logs a default log line.

+ (void)w:(nonnull Class)cls format:(nonnull NSString *)format, ...

Parameters

cls

Class.

format

The format message, and optional arguments to expand in the format.

...

The arguments to the message format string.

Declared In

SFLogger.h

+ w:message:

Logs a default log line.

+ (void)w:(nonnull Class)cls message:(nonnull NSString *)message

Parameters

cls

Class.

message

Log message.

Declared In

SFLogger.h

+ f:message:

Logs a fault log line.

+ (void)f:(nonnull Class)cls message:(nonnull NSString *)message

Parameters

cls

Class.

message

Log message.

Declared In

SFLogger.h

+ f:format:

Logs a fault log line.

+ (void)f:(nonnull Class)cls format:(nonnull NSString *)format, ...

Parameters

cls

Class.

format

The format message, and optional arguments to expand in the format.

...

The arguments to the message format string.

Declared In

SFLogger.h

+ v:message:

Logs a default/verbose log line.

+ (void)v:(nonnull Class)cls message:(nonnull NSString *)message

Parameters

cls

Class.

message

Log message.

Declared In

SFLogger.h

+ v:format:

Logs a default/verbose log line.

+ (void)v:(nonnull Class)cls format:(nonnull NSString *)format, ...

Parameters

cls

Class.

format

The format message, and optional arguments to expand in the format.

...

The arguments to the message format string.

Declared In

SFLogger.h

+ log:message:

Logs a log line of the default level.

+ (void)log:(nonnull Class)cls message:(nonnull NSString *)message

Parameters

cls

Class.

message

Log message.

Declared In

SFLogger.h

+ log:format:

Logs a log line of the default level.

+ (void)log:(nonnull Class)cls format:(nonnull NSString *)format, ...

Parameters

cls

Class.

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:message:

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:

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

+ logLevel

Returns current log level used by this logger.

+ (SFLogLevel)logLevel

Return Value

Current log level.

Declared In

SFLogger.h

+ setLogLevel:

Sets log level to be used by this logger.

+ (void)setLogLevel:(SFLogLevel)logLevel

Parameters

logLevel

Log level.

Declared In

SFLogger.h

+ setInstanceClass:

Set an instance of underlying logger class that complies with SFLogging.

+ (void)setInstanceClass:(Class<SFLogging>)logger

Parameters

logger

Class.

Declared In

SFLogger.h

  defaultLogger

Get the default Logger.

@property (class, nonatomic, readonly) SFLogger *defaultLogger

Declared In

SFLogger.h

+ loggerForComponent:

Get an instance of a component Logger.

+ (nonnull instancetype)loggerForComponent:(nonnull NSString *)component

Declared In

SFLogger.h