0.3.6 • Published 5 years ago

dz-log-prefix v0.3.6

Weekly downloads
7
License
MIT
Repository
github
Last release
5 years ago

Adds prefixes to winston - like JS loggers.

For usage examples, see: https://github.com/Dzenly/dz-log-prefix/blob/master/test/test.js.

#Environment variables

  • DZLOGPREFIX_CALLSITE_ALL - Show callsite for all log levels. E.g. DZLOGPREFIX_CALLSITE_ALL=1

  • DZLOGPREFIX_CALLSITE - Show callsite for specified levels only (comma separated list of levels). E.g. DZLOGPREFIX_CALLSITE=error,warn.

  • DZLOGPREFIX_STACK_NO_NODE_MODULES - Do not show strings containing node_modules in call stacks for errors. E.g. DZLOGPREFIX_STACK_NO_NODE_MODULES=1

  • DZLOGPREFIX_CALLSITE_DEPTH - The stack depth to print when DZLOGPREFIX_CALLSITE or DZLOGPREFIX_CALLSITE_ALL are used. 1 is by default.

0.3.6

5 years ago

0.3.5

6 years ago

0.3.4

6 years ago

0.3.3

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago