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 Rainbow Cafe 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 Rainbow Cafe Apps & Libraries

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published