0.1.5 • Published 2 years ago

wraplog v0.1.5

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

Logger library - npmjs' wraplog

  • Last tests against master on CircleCI: CircleCI

  • Install with:

sudo npm install -g node-gyp
npm install wraplog

Note node-gyp would be required installing unix-dgram dependency.

  • Configure using:
# divert everything to console:
export DEBUG=whateverstringwoulddo

# to local syslog
export SYSLOG_FACILITY=local6
export SYSLOG_PROTO=unix
export SYSLOG_UNIX_SOCKET=/dev/log

# to remote syslog
export SYSLOG_FACILITY=local6
export SYSLOG_PROTO=udp
export SYSLOG_PROXY=rsyslog.example.com
export SYSLOG_PORT=514
  • Use it in place of console.*:
const logger = require('wraplog')('appname');
logger.info('foo');
logger.error('bar');
0.1.4

2 years ago

0.1.3

2 years ago

0.1.5

2 years ago

0.1.2

2 years ago

0.1.1

3 years ago

0.1.0

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago