js-logger
js-logger copied to clipboard
Lightweight, unobtrusive, configurable JavaScript logger.
It needs to export IContext interface since it is referenced from ILogHandler. Attempt to define instance of ILogHandler leads to typescript complier error.
```Logger.createDefaultHandler({ formatter: function (messages, context) { // prefix each log message with a timestamp. messages.unshift(new Date().toUTCString()); }, }); ``` will break: `logger.log('Hello %s', 'Jonny')`
I would like to use js-logger with [console.group](https://developer.mozilla.org/en-US/docs/Web/API/Console/group). I know it's not standard, but I don't see why js-logger couldn't implement all console methods available in the current environment.
JSLogger should cascade the LogLevel configuration for named loggers based on their namespace, so for example: var loggerA = Logger.get("parentNS.clientA"); // Configure the LogLevel of the parent namespace Logger.get("parentNS").setLevel(Logger.WARN); loggerA.info("Info...
I'm sure this is likely an issue with the way I've set things up (latest node, bable, webpack, ) but I cannot get string interpolation to work when using `...
Could it be possible to integrate tables into the project? It'd be nice to look at some of my reference data in a well presented way.
Chrome and Firefox both support colors in console. For example: > console.log('%c console colors', 'background: black; color: yellow'); js-logger should be able to pass this through to the underlying console...
Bumps [minimist](https://github.com/minimistjs/minimist), [extract-zip](https://github.com/maxogden/extract-zip) and [mkdirp](https://github.com/isaacs/node-mkdirp). These dependencies needed to be updated together. Updates `minimist` from 1.2.0 to 1.2.8 Changelog Sourced from minimist's changelog. v1.2.8 - 2023-02-09 Merged [Fix] Fix long...