PWConsoleLogger Class Reference

Inherits from NSObject
Conforms to PWLogger
Declared in PWConsoleLogger.h

  serviceName

The name of the service that corresponds to the logger.

@property (nonatomic, readonly) NSString *serviceName

Discussion

Each logger will only log messages tagged with the same service name as teh logger.

Declared In

PWConsoleLogger.h

  baseLevel

The base level of the logger.

@property (nonatomic) PWLogLevel baseLevel

Discussion

This property can be set to filter out log messages depending on their type. See the ‘PWLogLevel’ enum for more details.

Declared In

PWConsoleLogger.h

  asyncLogging

Indicates if the logger needs to execute in the background

@property (nonatomic, readonly) BOOL asyncLogging

Discussion

If the property is true, the logMessage: method will be executed using an asynchronous dispatch queue

Declared In

PWConsoleLogger.h

+ loggerWithServiceName:

Convenience constructor to create logger

+ (instancetype)loggerWithServiceName:(NSString *)serviceName

Parameters

serviceName

The service name that corresponds to the logger.

Declared In

PWConsoleLogger.h

– logMessage:

Logs a message using the logger.

- (void)logMessage:(PWLogMessage *)logMessage

Discussion

Log messages whose type is lower than the logger base level will cause this method to be called

Declared In

PWConsoleLogger.h