Releases: clay/clay-log
Releases · clay/clay-log
pretty-output
- added
pretty
andoutput
arguments #5
Bug Fix: Only Prettify On The Server
Only tries to prettify the log output when on the server.
Add `_label` Property
Adds a _label
property to the logged object which is a human readable version of the level
. Useful when using tools like ELK or just grepping on logs.
Bug Fix: Pino Level
Fixed bug in regards to properly setting the level
property on the Pino constructor.
Set process.env.LOG
equal to any of the arguments for Pino's level
property (trace
, debug
, info
, warn
, error
, fatal
) to only display logs of that level and greater.
Optional Logger
Two features:
- Can pass in a Pino instance as a second argument to the
meta
function to then call.child
on that instance. - Can retrieve the Pino instance at anytime (
.getLogger
)