Log4netLogis an adapter that wraps an arbitrary instance of Log4net's
ILoggerand implements Vostok log interface. It enables gradual migration for Log4net users by allowing existing code to be ported to Vostok
ILogabstraction without immediately changing and reconfiguring underlying implementation.
ForContextmethod implementation differs from common conventions described in source context section. It translates source context values into logger names by using a configurable
LoggerNameFactorydelegate. Having determined the new logger name, it returns a copy of the log with underyling
ILoggerobtained from current
ILogger's repository by this name.
LoggerNameFactoryis to merge context values using dot as separator: