Skip to content

uber-foo/null-logger-light

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

null-logger-light

This library is intended to be used as a default null logger stand-in for javascript components that can optionally accept a bunyan logger.

Example

import nullLogger from 'null-logger-light';

class Something {
	constructor(logger = nullLogger) {
		this.log = logger;
	}
	doSomething() {
		const { log } = this;
		log.info('nothing unless logger was supplied to constructor');
	}
}

About

Null logger for Javascript mirroring bunyan api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published