Closed iamed2 closed 6 years ago
1) config!
is starting to have too many keyword args.
2) I think needing to explicitly create a logger or use setpropagating!
is appropriate if you actively want to avoid propagation up the hierarchy.
3) It would have been nice if someone reviewed this before it was merged.
Python's logging module considers propagate
important enough to have in its config functions
If you want to make a logger that handles custom record types with a custom formatter, it's annoying to have to add the call to setpropagating!
to prevent the root logger from erroring on display.
Python's logging module considers propagate important enough to have in its config functions
Ahh, okay. Memento.config!
was designed after basicConfig
which doesn't take a propagate
keyword. I'm guessing you were thinking of dictConfig
? I guess it doesn't really make sense to distinguish the two in julia as we could just dispatch on an Associative
in the future.
Ah yes. I think fileConfig also allows this, although I couldn't find a specific example of that.
I think the difference is that basicConfig
only operates on the root logger, whereas dictConfig
and fileConfig
can set properties on any logger.
Codecov Report
100% <100%> (ø)
Continue to review full report at Codecov.