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

  logType

The type of log message. Whether the message will actually be logged depends on the type of the message and the level of the logger. Refer to the ‘PWLogLevel’ enum for details.

@property (nonatomic, readonly) PWLogType logType

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

  line

The line number inside the file where the message was logged.

@property (nonatomic, readonly) NSUInteger line

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

The log message details

serviceName

The name of the service that corresponds to the message.

type

The type of log message.

file

The file where the message was logged.

function

The function where the message was logged.

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

– jsonRepresentation

The JSON representation of the log message.

- (NSString *)jsonRepresentation

Return Value

A string containing the JSON representation of the log message.

Declared In

PWLogMessage.h