PWLogger Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | PWLogger.h |
serviceName
required method
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
PWLogger.h
baseLevel
required method
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
PWLogger.h
asyncLogging
required method
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
PWLogger.h
+ loggerWithServiceName:
required method
Convenience constructor to create logger
+ (instancetype)loggerWithServiceName:(NSString *)serviceName
Parameters
serviceName |
The service name that corresponds to the logger. |
---|
Declared In
PWLogger.h
– logMessage:
required method
Logs a message using the logger.
- (void)logMessage:(PWLogMessage *)logMessage
Parameters
logMessage |
The logmessage to be logged. |
---|
Discussion
Log messages whose type is lower than the logger base level will cause this method to be called
Declared In
PWLogger.h