@hoast/process-log
v3.2.0
Published
Log data to the terminal, useful for developing other process and source packages.
Downloads
26
Maintainers
Readme
@hoast/process-log
Log data to the terminal, useful for developing other process and source packages.
Install
npm install @hoast/process-log
Options
{String} property = null
Dot notation path to the data property which should be logged.{String} format = 'js'
In what format to log the data. Eitherjs
orjson
.{String} level = 'info'
What console command to output the data with. Eitherinfo
,warn
, orerror
.{String} prepend = null
Text to prepend to the message.{String} append = null
Text to append to the message.{Number} logLevel = 2
Log level given to the logger.