js-console-formatter
v1.1.3-2
Published
Simple formatter that adds timestamps, symbols and printed in a more structual way
Downloads
1
Readme
js-console-formatter
Simple formatter that adds timestamps, symbols and printed in a more structural formatting.
Getting started
import jsConsoleFormatter from 'js-console-formatter'
jsConsoleFormatter()
That's it.
How to use
Beside replacing your normal console outputs, it also adds a console.success function.
console.success("A message from console.success()");
console.log("A message from console.log()");
console.debug("A message from console.debug()");
console.info("A message from console.info()");
console.error("A message from console.error()");
console.warn("A message from console.warn()");
Tested and works on:
- Windows 10: Chrome and Edge
- MacOS Monterey: Chrome
Notes Safari is not supported. If Safari is detected, it will be ignored.
FAQ
Why cant't I see any logs in Chrome?
This is problably due to the logging levels set in the dev-tools console. On the right side, there's a "levels" dropdown. Select 'Verbose'
License
MIT