Enabled rolling file logging.

This commit is contained in:
kay.one 2012-01-22 18:24:16 -08:00
commit d1e3298da1
17 changed files with 817 additions and 185 deletions

View file

@ -50,17 +50,8 @@ namespace NzbDrone.Web
protected override IKernel CreateKernel()
{
LogManager.Configuration = new XmlLoggingConfiguration(new EnviromentProvider().GetNlogConfigPath(), false);
LogConfiguration.RegisterUdpLogger();
LogConfiguration.RegisterExceptioneer();
LogConfiguration.RegisterConsoleLogger(LogLevel.Info, "NzbDrone.Web.MvcApplication");
LogConfiguration.RegisterConsoleLogger(LogLevel.Info, "NzbDrone.Core.CentralDispatch");
var dispatch = new CentralDispatch();
Logger.Info("NzbDrone Starting up.");
var dispatch = new CentralDispatch();
dispatch.DedicateToHost();
dispatch.Kernel.Load(Assembly.GetExecutingAssembly());