You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been using femme for a while now, and initializing it always requires copying over some boilerplate. I wish we could streamline this slightly:
femme::info()?;// start femme with info log level
femme::trace()?;// start femme with trace level
In addition to that, something that env-logger does well is provide a way to filter messages. In reality these methods should be be a constructor for a Logger struct that can be further configured.
This would also allow us to trim down the submodules we have. When piping we should always print out ndjson. When printing to stdout we should use the pretty printer.
The "simple" printer becomes a bit of a strange one, but perhaps we don't need it per-se? I'm unsure really. Thoughts would be welcome here. Thanks!
The text was updated successfully, but these errors were encountered:
I've been using femme for a while now, and initializing it always requires copying over some boilerplate. I wish we could streamline this slightly:
In addition to that, something that env-logger does well is provide a way to filter messages. In reality these methods should be be a constructor for a
Logger
struct that can be further configured.This would also allow us to trim down the submodules we have. When piping we should always print out ndjson. When printing to stdout we should use the pretty printer.
The "simple" printer becomes a bit of a strange one, but perhaps we don't need it per-se? I'm unsure really. Thoughts would be welcome here. Thanks!
The text was updated successfully, but these errors were encountered: