Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }