0.0.6 • Published 6 years ago

@cosmicvelocity/logging-js v0.0.6

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

logging-js

It is a lightweight logging library.

Installation

Using npm:

    $ npm i -D @cosmicvelocity/logging-js

How to use

    import Logger from 'logging-js';

    class Sample {
        constructor() {
            this._logger = Logger.getLogger(this);
        }
        hello() {
            this._logger.info('Hello !!');
        }
    }

    const sample = new Sample();

    sample.hello();

    // [INFO] Sample Hello !!

License

Apache 2.0