Version: 1.0
Each internal log message is a plain JavaScript Object.
The message must contain fields described below and can include any additional fields. Names of additional fields must not conflict with required fields and standard built-in methods and properties of Object.
timestamp - Date
The time when the log messages were called.
arguments - Array
An array of original items for logging.
severity - Number
The severity level of the message. According to the specification: Syslog Message Severities
namespace - String
An arbitrary string identifier. Can be empty.
You can add custom fields to the log object according to your needs. Below are recommendations for the field names and their types.
message - String
Fully formatted string representing the log message. For example, it can be produced from arguments
and timestamp
.
The PID of the process.
Arbitrary machine name as a string.
Machine platform.
Processor architecture.
Current working directory of the process.