3.0.5 • Published 1 year ago

exreda-logger v3.0.5

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

exreda-logger is a simple logger that is suitable for all types of projects. This is an ES6 type module (not CommonJS), which should use with 'import' statements.

Installation

npm install exreda-logger

Usage

  • Import the package
import log from 'exreda-logger'

-Call log.info(), log.warn() or log.error() functions wherever you need to log messages.

Examples:

  • To log an info;
log.info("information!")
  • To log a warning;
log.warn("Warning message")
  • To log an error;
log.error("Error message")

Log file location

The module will save all log files in the "logs" directory in the root. If there's no directory called "logs" in the root, the module will create a new directory. For example, the path of the error log will be; /logs/error.log.

Warning! If you already have a directory called "logs" in the root, it will be overridden.

3.0.4

1 year ago

3.0.3

1 year ago

3.0.2

1 year ago

3.0.1

1 year ago

3.0.5

1 year ago

2.0.1

2 years ago

2.0.0

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

1.2.1

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago