PWLogMessage Class Reference
Inherits from | NSObject |
---|---|
Conforms to | NSCopying PWLoggableObject |
Declared in | PWLogMessage.h |
message
The main message of the message object.
@property (nonatomic, readonly) NSString *message
Declared In
PWLogMessage.h
details
A dictionary with the log message details.
@property (nonatomic, readonly) NSDictionary *details
Declared In
PWLogMessage.h
serviceName
The name of the service that corresponds to the message.
@property (nonatomic, readonly) NSString *serviceName
Declared In
PWLogMessage.h
file
The file where the message was logged.
@property (nonatomic, readonly) NSString *file
Declared In
PWLogMessage.h
function
The function where the message was logged.
@property (nonatomic, readonly) NSString *function
Declared In
PWLogMessage.h
timestamp
The date the message was logged.
@property (nonatomic, readonly) NSDate *timestamp
Declared In
PWLogMessage.h
– initWithMessage:details:serviceName:type:file:function:line:
Initializes a log message object.
- (instancetype)initWithMessage:(NSString *)message details:(NSDictionary *)details serviceName:(NSString *)serviceName type:(PWLogType)type file:(NSString *)file function:(NSString *)function line:(NSUInteger)line
Parameters
message |
The main message of the log messge object |
---|---|
details |
|
serviceName |
The name of the service that corresponds to the message. |
type |
The type of log message. |
file |
|
function |
|
line |
The line number inside the file where the message was logged. |
Return Value
An instance of a log message object.
Declared In
PWLogMessage.h