@juwel-development/beautiful-logger
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

@juwel-development/beautiful-logger

This is just console.log but a little more colorful.

Installation

npm install @juwel-development/beautiful-logger

Usage

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';

Log a message

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");

Readme

Keywords

Package Sidebar

Install

npm i @juwel-development/beautiful-logger

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

13.9 kB

Total Files

10

Last publish

Collaborators

  • juwel-dev