From 6f7b8314bcd50fd3b77450325ccf2d7f47bd6a26 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 21 Jun 2016 00:30:36 -0400 Subject: [PATCH] updated to loggr rc2 --- src/Api/Startup.cs | 10 +++++----- src/Api/project.json | 3 ++- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Api/Startup.cs b/src/Api/Startup.cs index a154ecab7..746e0331f 100644 --- a/src/Api/Startup.cs +++ b/src/Api/Startup.cs @@ -20,7 +20,7 @@ using Repos = Bit.Core.Repositories.SqlServer; using System.Text; using StackExchange.Redis.Extensions.Core; using StackExchange.Redis.Extensions.Protobuf; -//using Loggr.Extensions.Logging; +using Loggr.Extensions.Logging; namespace Bit.Api { @@ -154,10 +154,10 @@ namespace Bit.Api if(!env.IsDevelopment()) { - //loggerFactory.AddLoggr( - // LogLevel.Error, - // globalSettings.Loggr.LogKey, - // globalSettings.Loggr.ApiKey); + loggerFactory.AddLoggr( + LogLevel.Error, + globalSettings.Loggr.LogKey, + globalSettings.Loggr.ApiKey); } // Add static files to the request pipeline. diff --git a/src/Api/project.json b/src/Api/project.json index 9c642acde..65d522dbc 100644 --- a/src/Api/project.json +++ b/src/Api/project.json @@ -18,7 +18,8 @@ "Microsoft.AspNetCore.Cors": "1.0.0-rc2-final", "Microsoft.AspNetCore.Diagnostics": "1.0.0-rc2-final", "Microsoft.Extensions.Configuration.EnvironmentVariables": "1.0.0-rc2-final", - "Microsoft.Extensions.Configuration.Binder": "1.0.0-rc2-final" + "Microsoft.Extensions.Configuration.Binder": "1.0.0-rc2-final", + "Loggr.Extensions.Logging": "1.0.0-rc2-final" }, "tools": {