FMLiveSwitchLogEvent Class Reference

Details about a specific log event. More...

Instance Methods

(FMLiveSwitchLogContext *) - context
 Gets the event context. More...
 
(NSString *) - description
 
(NSException *) - exception
 Gets the event exception, if one exists. More...
 
(instancetype) - initWithTimestamp:tag:scope:level:context:message:exception:threadId:
 Initializes a new instance of the FMLiveSwitchLogEvent class. More...
 
(FMLiveSwitchLogLevel) - level
 Gets the event level. More...
 
(FMLiveSwitchLogLevel) - logLevel
 Gets the level of this log event. More...
 
(NSString *) - message
 Gets the event message. More...
 
(NSString *) - scope
 Gets the event scope. More...
 
(void) - setContext:
 Sets the event context. More...
 
(void) - setException:
 Sets the event exception, if one exists. More...
 
(void) - setLevel:
 Sets the event level. More...
 
(void) - setMessage:
 Sets the event message. More...
 
(void) - setScope:
 Sets the event scope. More...
 
(void) - setTag:
 Sets the event tag. More...
 
(void) - setThreadId:
 Sets the ID of the thread generating the event. More...
 
(void) - setTimestamp:
 Sets the event timestamp. More...
 
(NSString *) - tag
 Gets the event tag. More...
 
(long long) - threadId
 Gets the ID of the thread generating the event. More...
 
(NSDate *) - timestamp
 Gets the event timestamp. More...
 
(NSString *) - toJson
 Serializes this instance to JSON. More...
 

Class Methods

(FMLiveSwitchLogEvent *) + fromJsonWithLogEventJson:
 Deserializes a log event from JSON. More...
 
(FMLiveSwitchLogEvent *) + logEventWithTimestamp:tag:scope:level:context:message:exception:threadId:
 Initializes a new instance of the FMLiveSwitchLogEvent class. More...
 
(NSString *) + toJsonWithLogEvent:
 Serializes a log event to JSON. More...
 

Detailed Description

Details about a specific log event.

Method Documentation

◆ context

- (FMLiveSwitchLogContext*) context

Gets the event context.

◆ description

- (NSString*) description

◆ exception

- (NSException*) exception

Gets the event exception, if one exists.

◆ fromJsonWithLogEventJson:

+ (FMLiveSwitchLogEvent*) fromJsonWithLogEventJson: (NSString *)  logEventJson

Deserializes a log event from JSON.

Parameters
logEventJsonThe log event JSON.

◆ initWithTimestamp:tag:scope:level:context:message:exception:threadId:

- (instancetype) initWithTimestamp: (NSDate *)  timestamp
tag: (NSString *)  tag
scope: (NSString *)  scope
level: (FMLiveSwitchLogLevel)  level
context: (FMLiveSwitchLogContext *)  context
message: (NSString *)  message
exception: (NSException *)  exception
threadId: (long long)  threadId 

Initializes a new instance of the FMLiveSwitchLogEvent class.

Parameters
timestampThe event timestamp.
tagThe event tag.
scopeThe event scope.
levelThe event level.
contextThe event context.
messageThe event message.
exceptionThe event exception, if one exists.
threadIdThe ID of the thread generating the event.

◆ level

- (FMLiveSwitchLogLevel) level

Gets the event level.

◆ logEventWithTimestamp:tag:scope:level:context:message:exception:threadId:

+ (FMLiveSwitchLogEvent*) logEventWithTimestamp: (NSDate *)  timestamp
tag: (NSString *)  tag
scope: (NSString *)  scope
level: (FMLiveSwitchLogLevel)  level
context: (FMLiveSwitchLogContext *)  context
message: (NSString *)  message
exception: (NSException *)  exception
threadId: (long long)  threadId 

Initializes a new instance of the FMLiveSwitchLogEvent class.

Parameters
timestampThe event timestamp.
tagThe event tag.
scopeThe event scope.
levelThe event level.
contextThe event context.
messageThe event message.
exceptionThe event exception, if one exists.
threadIdThe ID of the thread generating the event.

◆ logLevel

- (FMLiveSwitchLogLevel) logLevel

Gets the level of this log event.

Alias for level.

◆ message

- (NSString*) message

Gets the event message.

◆ scope

- (NSString*) scope

Gets the event scope.

◆ setContext:

- (void) setContext: (FMLiveSwitchLogContext *)  value

Sets the event context.

◆ setException:

- (void) setException: (NSException *)  value

Sets the event exception, if one exists.

◆ setLevel:

- (void) setLevel: (FMLiveSwitchLogLevel)  value

Sets the event level.

◆ setMessage:

- (void) setMessage: (NSString *)  value

Sets the event message.

◆ setScope:

- (void) setScope: (NSString *)  value

Sets the event scope.

◆ setTag:

- (void) setTag: (NSString *)  value

Sets the event tag.

◆ setThreadId:

- (void) setThreadId: (long long)  value

Sets the ID of the thread generating the event.

◆ setTimestamp:

- (void) setTimestamp: (NSDate *)  value

Sets the event timestamp.

◆ tag

- (NSString*) tag

Gets the event tag.

◆ threadId

- (long long) threadId

Gets the ID of the thread generating the event.

◆ timestamp

- (NSDate*) timestamp

Gets the event timestamp.

◆ toJson

- (NSString*) toJson

Serializes this instance to JSON.

◆ toJsonWithLogEvent:

+ (NSString*) toJsonWithLogEvent: (FMLiveSwitchLogEvent *)  logEvent

Serializes a log event to JSON.

Parameters
logEventThe log event.