Log errors, warnings, debug and trace messages bunyan style, with JSON formatted machine readable logs, and a memory buffer for traceback. Supports one log file and memory log. For more than one log file, the JSON emitted Can be used with other logging packages.
1 |
msg |
optional. Error to report - R struct passed to toJSON |
level |
string or numeric, required. 'TRACE', 'DEBUG', 'INFO', 'WARN', 'ERROR', 'FATAL' Level required to trigger log write. |
req |
optional. An http style request R struct |
res |
optional. An http style response R struct |
version |
optional. A user specified version R struct |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.