@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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.27latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.27
1.0.11
1.0.00

Package Sidebar

Install

npm i @aidakgm/lwlogger

Weekly Downloads

8

Version

1.0.2

License

Apache-2.0

Unpacked Size

17.3 kB

Total Files

13

Last publish

Collaborators

  • aidakgm