LogMessage

constructor(message: LogMessageContent, details: String? = null, type: LogMessageType = message.inferType(), location: String? = null, pubNubId: String? = null, logLevel: Level? = null, timestamp: String = LocalTime.now().format(DateTimeFormatter.ofPattern("HH:mm:ss.SSS")))

Parameters

pubNubId

The PubNub instance identifier

logLevel

The logging level

location

The source location of the log

type

The type of log message (automatically inferred from message content)

message

The log message content

details

Optional additional details (will be sanitized)

timestamp

The timestamp when the log was created