Quality of life updates for LoggerFactory#825
Conversation
Adds methods to return updated versions that configure the loggers they produce using `addContext` and `withModifiedString`. This should make it easier to migrate from passing around a single `SelfAwareStructuredLogger` and using a `LoggerFactory`.
rossabaker
left a comment
There was a problem hiding this comment.
I don't know what the LoggerFactoryGen supertype is for, but I'll ask: would this have worked on LoggerFactoryGen? I think probably not, because then it wouldn't be able to return a LoggerFactory?
Assuming that's a bad idea, 👍
I'm pretty sure that it couldn't go on |
Adds methods to return updated versions that configure the loggers they produce using
addContextandwithModifiedString.This should make it easier to migrate from passing around a single
SelfAwareStructuredLoggerand using aLoggerFactory.