You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
689 B
26 lines
689 B
13 years ago
|
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)");
|
||
|
|
||
|
|
||
|
}
|
||
|
}
|
||
|
}
|