1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-14 11:23:42 +02:00

Fixed error log file.

This commit is contained in:
kay.one 2012-02-15 22:30:48 -08:00
parent dde0432efc
commit 64ae67acbb

View File

@ -16,11 +16,11 @@ public static class Logging
public static void PreStart() public static void PreStart()
{ {
string logPath = string.Format("C:\\NLog\\{0}\\{1}\\${{shortdate}}.log", HostingEnvironment.SiteName, new EnviromentProvider().Version); 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.RegisterUdpLogger();
LogConfiguration.RegisterFileLogger(logPath, LogLevel.Trace); LogConfiguration.RegisterFileLogger(logPath, LogLevel.Trace);
LogConfiguration.RegisterFileLogger(error, LogLevel.Warn); //LogConfiguration.RegisterFileLogger(error, LogLevel.Warn);
LogConfiguration.Reload(); LogConfiguration.Reload();
logger.Info("Logger has been configured. (App Start)"); logger.Info("Logger has been configured. (App Start)");