bunyanLog.warn: Logs a message at WARN level 40

Description Usage Arguments

Description

Logger bunyan style, to write JSON formatted machine readable logs and to keep JSON log lines in a memory buffer. Can be used with other logging packages.

Usage

1
  bunyanLog.warn(msg, req, res, version)

Arguments

msg

optional. Error to report - R struct passed to toJSON

req

optional. An http style request R struct

res

optional. An http style response R struct

version

optional. A user specified version R struct


joyent/Rbunyan documentation built on May 19, 2019, 9:43 p.m.