1.0.4 • Published 3 years ago

elle-logger v1.0.4

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

Elle Logger

npm version "Buy Me A Coffee"

Simple & Customizable colored logger written in Typescript

Usage

Import the library inside the file where you want to log:

import { ElleLogger } from 'elle-logger';

Declare the logger variable and, if you want, pass a configuration object.

private readonly logger = new ElleLogger({
        context: 'AppController',
        date: {
            useDate: true,
            dateFormat: 'YYYY-MM-DD HH:mm:ss'
        },
        logConfiguration: {
            error: {
                background: 'red' // or use hex code
                color: '#000'
            }
        }
    })

Enjoy.

Credits

  • LuigiElleBalotta
1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago