This is just console.log but a little more colorful.
npm install @juwel-development/beautiful-logger
You can set a global environment variable to define the log level. The default log level is debug
.
We have the following log levels:
debug
info
warn
error
window.ENV.LOG_LEVEL = 'debug';
Inspired by libraries like log4j
you need to call a static method on the Logger
class to get a logger instance.
Logger.getLogger("MyClassName").info("Hello World");