Entry

Describes a single log entry.

Constructor

new Entry(level, message, opt_timestampopt, opt_typeopt)

Parameters:
NameTypeAttributesDescription
levelLevel | string | number

The entry level.

messagestring

The log message.

opt_timestampnumber<optional>

The time this entry was generated, in milliseconds since 0:00:00, January 1, 1970 UTC. If omitted, the current time will be used.

opt_typestring<optional>

The log type, if known.

Methods

toJSON() → {Object}

Returns:

The JSON representation of this entry.

Type: 
Object