cosmicvelocity-logging-js

It is a lightweight logging library.

Usage no npm install needed!

<script type="module">
  import cosmicvelocityLoggingJs from 'https://cdn.skypack.dev/cosmicvelocity-logging-js';
</script>

README

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