Class
caplin.core.log

LogRecord

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

Constructor Summary

Attributes Name and Description
caplin.core.log.LogRecord(Number time, String level, Array logData, id id)

Constructs a caplin.core.log.LogRecord.

Method Summary

Attributes Name and Description
String toString()

Renders a LogRecord to a string.

Constructor Detail

caplin.core.log.LogRecord(Number time, String level, Array logData, id id)

Constructs a caplin.core.log.LogRecord.

Parameters
Number time the time this message was logged, in milliseconds since the epoc.
String level the level it was logged at, equivalent to the method call on a caplin.core.log.Logger.
Array logData all the data that should be logged.
id id a unique identifier for this log record.

Method Detail

String toString()

Renders a LogRecord to a string.

Returns
{String} a string representation of this LogRecord. Will not be null.