@studyportals/node-log

1.1.2 • Public • Published

@studyportals/node-log@v1.1.2

NPM version NPM license NPM downloads Dependencies Development Dependencies

Logging support for Node

@studyportals/log

@studyportals/log.VERBOSITY : enum

Default options for verbosity

Kind: static enum of @studyportals/log
Properties

Name Type Default
NONE number 0
ERROR number 1
WARNING number 2
INFO number 3
DEBUG number 4
ALL number 4

@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

Param Type Description
x VERBOSITY | number Verbosity level

@studyportals/log.debug([message]) ⇒

Debug message (gray)

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

Param Type
[message] string

@studyportals/log.info([message]) ⇒

Info message (white)

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

Param Type
[message] string

@studyportals/log.warning([message]) ⇒

Warning message (yellow)

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

Param Type
[message] string

@studyportals/log.error([message]) ⇒

Error message (red)

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

Param Type
[message] string

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

Readme

Keywords

none

Package Sidebar

Install

npm i @studyportals/node-log

Weekly Downloads

96

Version

1.1.2

License

BSD-3-Clause

Last publish

Collaborators

  • studyportals-devops