browser-logger
browser-logger copied to clipboard
Making this awesome logger universal
This logger is great!
However, you are exposing the Apache/bunyan API.
What would be awesome would be to support all logger APIs at once, so that yours could be plugged to anything (JS console, syslog, angular...)
I've listed all those APIs here: https://docs.google.com/spreadsheets/d/1Bc32plQTswNdCqXS99deB0n7Te7FfD7uepGAOOlPbvY/edit?usp=sharing
Here are the methods:
alert,
crit,
debug,
emerg,
error,
fatal,
info,
log,
notice,
silly,
trace,
verbose,
warn,
warning,
Without that we need to wrap your good lib...
Hey @Offirmo! Thanks 😄
I'm totally open to this—I was never quite sure which methods to include and which to omit, and it felt weird. What does your wrapper look like?
I didn't write any wrapper. I won't need one if you add support for all methods ^^
@Offirmo I don't understand. Are you plugging this into an existing logger? What is dictating which methods you use?
I was thinking: when writing a logger like you did, why restricting oneself to a specific logging API? Why not supporting all methods and be pluggable everywhere? (i.e. drop-in replacement for console, bunyan, angular, etc.)
It's an architecture decision. Just suggesting the idea.