protected override IStandardLog CreateLoggerInstance(ILogSource source) { var config = new LogLevelConfig(); config.CopyFrom(this.PickConfig(source)); var logger = new UnityLogger(source, config); this.LogConfigs.Add(logger, config); return(logger); }
protected override IStructuredLog CreateStructuredLogInstance(ILogSource source) { var config = new LogLevelConfig(); config.CopyFrom(this.PickConfig(source)); var logger = new StructuredLogger( source, new LogLevelStatus(config), this.unityStructuredLogEventWriter); this.LogConfigs.Add(logger, config); return(logger); }