Skip to content

ribbon-studios/logger

Repository files navigation

@ribbon-studios/logger

NPM Version NPM Downloads Coveralls

CI Build Maintainability Semantic Release Code Style: Prettier

A simple logger for all Ribbon Studios Apps & Libraries

Usage

import { logger, LogLevel } from '@ribbon-studios/logger';

logger.setLevel(LogLevel.INFO); // This is the default LogLevel

logger.silly('hello', 'world!');  // Outputs nothing since its lower then the configured level!
logger.info('hello', 'world!');   // '[info]:  hello world!'
logger.warn('hello', 'world!');   // '[warn]:  hello world!'
logger.error('hello', 'world!');  // '[error]: hello world!'

About

A simple logger for all Ribbon Studios Apps & Libraries

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

 
 
 

Contributors