Skip to content

Releases: clay/clay-log

pretty-output

27 Feb 20:55
Compare
Choose a tag to compare
  • added pretty and output arguments #5

Bug Fix: Only Prettify On The Server

23 Oct 19:56
Compare
Choose a tag to compare

Only tries to prettify the log output when on the server.

Add `_label` Property

19 Oct 16:23
Compare
Choose a tag to compare

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

30 Sep 21:50
Compare
Choose a tag to compare

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.

http://getpino.io/#/docs/API?id=parameters

Optional Logger

23 Sep 19:31
Compare
Choose a tag to compare

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)

v1

23 Sep 14:25
Compare
Choose a tag to compare
v1

Usage notes in the README