1.0.2 • Published 3 years ago

@aidakgm/lwlogger v1.0.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

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