Exemple #1
0
        protected override Logger CreateInstanceCore(Type activatedType, IServiceProvider serviceProvider)
        {
            if (buildCache == null)
            {
                serviceProvider = serviceProvider ?? ServiceProvider.Null;
                Target target = BuildTarget();

                Logger l = new DefaultLogger(this.Name, levels, LoggerFilter.All, target, this.profiler);
                if (!this.Enabled)
                {
                    l.Suspend();
                }
                buildCache = l;
            }

            return(buildCache);
        }