@aidakgm/lwlogger

1.0.2 • Public • Published

LWLogger

A very lightweight, object-oriented and easy to use logging package. Do not use this package for production since work is in progress.

🔌 Usage

const lwlogger = require('@aidakgm/lwlogger')

const logger = new lwlogger.Logger({
    transports: [
        new lwlogger.Transport({
            level: new lwlogger.Level({
                name: 'TEST',
                color: 'GREEN',
                format: '{{color}}[ {{prefix}} ] {{reset_color}}({{time}}) {{message}}',
                time: {
                    format: 'HH:mm:ss',
                    locale: 'es'
                }
            })
        })
    ]
})

logger.log(new lwlogger.Referral(logger.transports, 'TEST'), 'Hello!')

🌍 Why?

i was bored at home idk

🌟 Author and contribution

Package Sidebar

Install

npm i @aidakgm/lwlogger

Weekly Downloads

4

Version

1.0.2

License

Apache-2.0

Unpacked Size

17.3 kB

Total Files

13

Last publish

Collaborators

  • aidakgm