Ensuring Consistent Pretty Logging in Browser Environments
While in a browser environment, the
- When using
- When using
My intuition is that logs within the
I was thinking that out of the box, when in a browser environment, everything would use the pretty logger but I guess depending on where the Effect is being supervised, different loggers are used.
--> In browser environments, what would be the most idiomatic way to Provide a logger to always use the pretty logger?
Related: https://effect.website/blog/effect-3.8
Logger output is different depending on where I call log*() functions:- When using
Effect.logInfo in Stream.tap (for example), I get pretty logs in the console (with colors, expand arrows, etc.)- When using
Effect.logInfo in Stream.runForEach, I get string logsMy intuition is that logs within the
run* will be string logged, and everything prior within streams (or any other effects I guess, before run*) will be pretty logged.I was thinking that out of the box, when in a browser environment, everything would use the pretty logger but I guess depending on where the Effect is being supervised, different loggers are used.
--> In browser environments, what would be the most idiomatic way to Provide a logger to always use the pretty logger?
Related: https://effect.website/blog/effect-3.8
