1.1.2 • Published 1 year ago

simple-console-logger2 v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

simple console logger for browser and nodejs;

A logger which colorizes output, auto-inspects objects, and correctly writes to stdout or stderror. Can be marked as sync (blockingly writes to stdout/err) or async (uses console.log, not synchronous).

Features:

  1. support "DEBUG" "INFO" "TRACE" "WARNING" "OFF";
  2. support trace into logger code's line;
  3. support logger's label;

Install:

npm install simple-console-logger2

Usage:

ConsoleLogger.getLogger("label for logger");
logger.setLevel("INFO",{traceLogger:true})
logger.info("hello world")
//console out=>  [INFO-label for logger] hello world
1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago