Caplin Trader 5.1.0

Class: module:ct-core/log/LogRecord

module:ct-core/log/LogRecord(time, level, logData, id)

new module:ct-core/log/LogRecord(time, level, logData, id)

A LogRecord is used for storing log messages when the expense of rendering them to a string should be postponed until later.

Parameters:
Name Type Description
time Number

the time this message was logged, in milliseconds since the epoc.

level String

the level it was logged at, equivalent to the method call on a module:ct-core/log/Logger.

logData Array

all the data that should be logged.

id id

a unique identifier for this log record.

Methods

toString() → {String}

Renders a LogRecord to a string.

Returns:

a string representation of this LogRecord. Will not be null.

Type
String