1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-28 19:05:55 +00:00
Radarr/NzbDrone.Services/NzbDrone.Services.Service/App_Start/Logging.cs
2012-02-05 08:53:08 -08:00

26 lines
No EOL
689 B
C#

using System.Linq;
using NLog;
using NzbDrone.Common;
using NzbDrone.Services.Service.App_Start;
[assembly: WebActivator.PreApplicationStartMethod(typeof(Logging), "PreStart")]
namespace NzbDrone.Services.Service.App_Start
{
public static class Logging
{
private static readonly Logger logger = LogManager.GetCurrentClassLogger();
public static void PreStart()
{
LogConfiguration.RegisterUdpLogger();
LogConfiguration.RegisterFileLogger("${basedir}/_logs/${shortdate}.log", LogLevel.Trace);
LogConfiguration.Reload();
logger.Info("Logger has been configured. (App Start)");
}
}
}