protected override void ApplicationStartup(TinyIoCContainer container, IPipelines pipelines) { pipelines.EnableSerilog(); Log.Logger = new LoggerConfiguration() .WriteTo.Console() .WriteTo.Console(new JsonFormatter()) .CreateLogger(); }
protected override void ApplicationStartup(TinyIoCContainer container, IPipelines pipelines) { pipelines.EnableSerilog(); var logger = new LoggerConfiguration() .ReadFrom.AppSettings() .CreateLogger(); //Init loger Log.Logger = logger; }
protected override void ApplicationStartup(TinyIoCContainer container, IPipelines pipelines) { base.ApplicationStartup(container, pipelines); pipelines.EnableSerilog(); Log.Logger = new LoggerConfiguration() .WriteTo.File(new JsonFormatter(), "log.txt") .MinimumLevel.Debug() .CreateLogger(); if (settings.Cache.CacheEnabled) { this.EnableRapidCache(container.Resolve <IRouteResolver>(), ApplicationPipelines, new[] { "query", "form", "accept" }); pipelines.AfterRequest.AddItemToStartOfPipeline(ConfigureCache); } }
protected override void ApplicationStartup(TinyIoCContainer container, IPipelines pipelines) { pipelines.EnableSerilog(); }
protected override void ApplicationStartup(TinyIoCContainer container, IPipelines pipelines) { pipelines.EnableSerilog(); StaticConfiguration.DisableErrorTraces = false; }