Fixed error log file.

pull/19/head
kay.one 13 years ago
parent dde0432efc
commit 64ae67acbb

@ -16,11 +16,11 @@ namespace NzbDrone.Services.Service.App_Start
public static void PreStart()
{
string logPath = string.Format("C:\\NLog\\{0}\\{1}\\${{shortdate}}.log", HostingEnvironment.SiteName, new EnviromentProvider().Version);
string error = string.Format("C:\\NLog\\{0}\\{1}\\${{shortdate}}.Error.log", HostingEnvironment.SiteName, new EnviromentProvider().Version);
string error = string.Format("C:\\NLog\\{0}\\{1}\\${{shortdate}}_Error.log", HostingEnvironment.SiteName, new EnviromentProvider().Version);
LogConfiguration.RegisterUdpLogger();
LogConfiguration.RegisterFileLogger(logPath, LogLevel.Trace);
LogConfiguration.RegisterFileLogger(error, LogLevel.Warn);
//LogConfiguration.RegisterFileLogger(error, LogLevel.Warn);
LogConfiguration.Reload();
logger.Info("Logger has been configured. (App Start)");

Loading…
Cancel
Save