Closed morgen-peschke closed 5 months ago
I don't know what the
LoggerFactoryGen
supertype is for, but I'll ask: would this have worked onLoggerFactoryGen
? I think probably not, because then it wouldn't be able to return aLoggerFactory
?Assuming that's a bad idea, 👍
I'm pretty sure that it couldn't go on LoggerFactoryGen
because they get passed through to methods which aren't on Logger
, so we need the constraint that LoggerFactory
adds that LoggerFactoryGen#LoggerType
is SelfAwareStructuredLogger[F]
instead of any Logger[F]
subtype.
Adds methods to return updated versions that configure the loggers they produce using
addContext
andwithModifiedString
.This should make it easier to migrate from passing around a single
SelfAwareStructuredLogger
and using aLoggerFactory
.