1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 16:42:50 -05:00

Added loggr logging for production environment.

This commit is contained in:
Kyle Spearrin
2016-02-06 23:45:33 -05:00
parent fea34e2826
commit ef3853d507
6 changed files with 33 additions and 4 deletions

View File

@ -10,6 +10,7 @@ namespace Bit.Core
public virtual DocumentDBSettings DocumentDB { get; set; } = new DocumentDBSettings();
public virtual SqlServerSettings SqlServer { get; set; } = new SqlServerSettings();
public virtual MailSettings Mail { get; set; } = new MailSettings();
public virtual LoggrSettings Loggr { get; set; } = new LoggrSettings();
public class DocumentDBSettings
{
@ -27,8 +28,14 @@ namespace Bit.Core
public class MailSettings
{
public string APIKey { get; set; }
public string ApiKey { get; set; }
public string ReplyToEmail { get; set; }
}
public class LoggrSettings
{
public string LogKey { get; set; }
public string ApiKey { get; set; }
}
}
}

View File

@ -26,7 +26,7 @@ namespace Bit.Core.Services
public MailService(GlobalSettings globalSettings)
{
_globalSettings = globalSettings;
_web = new Web(_globalSettings.Mail.APIKey);
_web = new Web(_globalSettings.Mail.ApiKey);
}
public async Task SendAlreadyRegisteredEmailAsync(string registrantEmailAddress)