application-log-winston-interface

A wrapper around initialising Winston with Application-Log Standard levels, colours, and specific formats.

Usage no npm install needed!

<script type="module">
  import applicationLogWinstonInterface from 'https://cdn.skypack.dev/application-log-winston-interface';
</script>

README

application-log-winston-interface

standard-readme compliant Semantic Versioning 2.0.0 Conventional Commits License npm

A wrapper around initialising Winston with Application-Log Standard levels, colours, and specific formats.

Table of Contents

Background

A simple module that exists primarily as a convenience to initialise Winston the way I like.

Install

npm install application-log-winston-interface

Usage

API

const ApplicationLogWinstonInterface = require('application-log-winston-interface');

try{
    var Logger = ApplicationLogWinstonInterface.initWinstonLogger( 'base_name.log', './log/directory' );
} catch(error){
    //
}

Contributing

Changes are tracked in CHANGELOG.md.

License

MIT ©2021 Anadian

SEE LICENSE IN LICENSE

Creative Commons LicenseThis project's documentation is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.