I couldn't find a logging library that worked for my library, so I made one
13 points by todsacerdoti
by malfist
1 subcomments
Almost every logger in java operates this way. You set your library logging to debug and the end user and configure if they want debug logs from your library or not. They can even set context variables.
by callumgare
0 subcomment
I’ve been pretty happy with logtape which is specifically designed to be used in libraries as well as apps: https://logtape.org/manual/library
by cowlby
0 subcomment
This feels a bit like a pub/sub pattern; I wonder what it would look like with a full pub/sub implementation.
by KellyCriterion
1 subcomments
industry-proven and mature libs like LOG4J or LOG4Net are not sufficient?
by reactordev
0 subcomment
At least you learned something
by bgoosman
0 subcomment
Wasn't OpenTelemetry invented for this purpose?
by seniorsassycat
0 subcomment
I really want something like this to be built into the language or runtime, I don't want to juggle configuration for 4 different libraries. Log4j and tracing seem to be well established without being built in, but it feels too late for js.