Open lamby opened 6 years ago
Hey,
I really love how you can just do daiquiri.setup() and then just Move On. However, as soon as I would like to change the formatting (ie. drop the process ID and log name as it's always the same) then I end up having something relatively ugly:
daiquiri.setup()
formatter = daiquiri.formatter.ColorExtrasFormatter( fmt="%(color)s%(levelname).1s: %(message)s%(color_stop)s" ) daiquiri.setup(outputs=( daiquiri.output.Stream(formatter=formatter), ))
Any ideas on making this rather common use-case a bit cleaner? (Perhaps a magic kwarg to daiquiri.setup() like fmt="..."?
fmt="..."
We could probably add a little helper module for common use cases like that.
Hey,
I really love how you can just do
daiquiri.setup()
and then just Move On. However, as soon as I would like to change the formatting (ie. drop the process ID and log name as it's always the same) then I end up having something relatively ugly:Any ideas on making this rather common use-case a bit cleaner? (Perhaps a magic kwarg to
daiquiri.setup()
likefmt="..."
?