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": {