Skip to content

Anadian/cno-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cno-logger

standard-readme compliant Semantic Versioning 2.0.0 Conventional Commits License npm ci Coverage Status

A micropackage formerly known as application-log-winston-interface: 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

Using pnpm:

pnpm add --save cno-logger

It can, of course, also be installed by NPM or Yarn using the normal methods.

Usage

API

import * as ApplicationLogWinstonInterface from 'cno-logger';

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published