Skip to content

eropple/is-logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@eropple/is-logger

I like using Bunyan as a logger. But I also like making my tools available to people who don't. (Even though they should be using Bunyan. Y'all, just use Bunyan!)

To that end, I needed a utility library that does two things:

  • isLogger(obj): is this a logger? Defined loosely as "does it have the same output methods as console has?".
  • isBunyan(obj): is this a Bunyan logger? Defined similarly loosely as "does it pass isLogger(obj) and also have child, fatal, and streams (some of the most important methods on a Bunyan logger).

About

Helper functions to determine when an object can act as a logger (and, optionally, is a Bunyan logger).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published