1.1.2 • Published 7 years ago

@studyportals/node-log v1.1.2

Weekly downloads
5
License
BSD-3-Clause
Repository
github
Last release
7 years ago

@studyportals/node-log@v1.1.2

Logging support for Node

@studyportals/log

@studyportals/log.VERBOSITY : enum

Default options for verbosity

Kind: static enum of @studyportals/log
Properties

NameTypeDefault
NONEnumber0
ERRORnumber1
WARNINGnumber2
INFOnumber3
DEBUGnumber4
ALLnumber4

@studyportals/log.setVerbosity(x) ⇒

Set the verbosity level.

The default verbosity level is: process.env.PRTL_VERBOSITY || VERBOSITY.INFO;

Kind: static method of @studyportals/log
Returns: void

ParamTypeDescription
xVERBOSITY | numberVerbosity level

@studyportals/log.debug(message) ⇒

Debug message (gray)

Kind: static method of @studyportals/log
Returns: boolean

ParamType
messagestring

@studyportals/log.info(message) ⇒

Info message (white)

Kind: static method of @studyportals/log
Returns: boolean

ParamType
messagestring

@studyportals/log.warning(message) ⇒

Warning message (yellow)

Kind: static method of @studyportals/log
Returns: boolean

ParamType
messagestring

@studyportals/log.error(message) ⇒

Error message (red)

Kind: static method of @studyportals/log
Returns: boolean

ParamType
messagestring

README.md generated at: Thu Oct 05 2017 14:42:43 GMT+0200 (CEST)