Constructor
new Entry(level, message, opt_timestampopt, opt_typeopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
level | Level | | The entry level. | |
message | string | The log message. | |
opt_timestamp | number | <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_type | string | <optional> | The log type, if known. |
- Source
Methods
toJSON() → {Object}
- Source
Returns:
The JSON representation of this entry.
- Type:
- Object