loglevel-plugin-prefix
loglevel-plugin-prefix copied to clipboard
Plugin for loglevel message prefixing
Bumps [pathval](https://github.com/chaijs/pathval) from 1.1.0 to 1.1.1. Release notes Sourced from pathval's releases. v1.1.1 Fixes a security issue around prototype pollution. Commits db6c3e3 chore: v1.1.1 7859e0e Merge pull request #60 from...
The `timestampFormatter` function is expected to return a string, but the `format` function is expected to receive a `Date` and there's a default timestampFormatter. it means : 1. by default,...
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.5 to 1.0.7. Commits See full diff in compare view [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter...
* Adding to format parser %m option, it will display a line number URI on the final of the log. * Test runs fine * Node/Web works fine.
logs don't keeps line numbers
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.6.0 to 2.8.9. Changelog Sourced from hosted-git-info's changelog. 2.8.9 (2021-04-07) Bug Fixes backport regex fix from #76 (29adfe5), closes #84 2.8.8 (2020-02-29) Bug Fixes #61 & #65...
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.4 to 4.17.21. Commits f299b52 Bump to v4.17.21 c4847eb Improve performance of toNumber, trim and trimEnd on large input strings 3469357 Prevent command injection through _.template's variable...
Related issue: https://github.com/kutuluk/loglevel-plugin-prefix/issues/10
Hi @kutuluk, Thanks for creating this useful lib. I want to give warn and error a prefix. ``` prefix.apply(log, { format(level, name, timestamp) { if (level == "error" || level...
``` loglevel": "^1.6.7 loglevel-plugin-prefix": "^0.8.4 ``` In `App.ts` ``` const logRoot = require('loglevel'); const prefix = require('loglevel-plugin-prefix'); function format(level: string) { return '['+ level + ']:' } prefix.reg(logRoot); logRoot.enableAll(); logRoot.info('root1');...