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 *serviceNameDiscussion
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 baseLevelDiscussion
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 asyncLoggingDiscussion
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 *)serviceNameParameters
serviceName |
The service name that corresponds to the logger. |
|---|
Declared In
PWConsoleLogger.h
– logMessage:
Logs a message using the logger.
- (void)logMessage:(PWLogMessage *)logMessageDiscussion
Log messages whose type is lower than the logger base level will cause this method to be called
Declared In
PWConsoleLogger.h