29 lines
864 B
C#
29 lines
864 B
C#
using NLog;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Novetus.Bootstrapper
|
|
{
|
|
static class NovetusLaunch
|
|
{
|
|
/// <summary>
|
|
/// The main entry point for the application.
|
|
/// </summary>
|
|
[STAThread]
|
|
static void Main()
|
|
{
|
|
Application.EnableVisualStyles();
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|
|
|
var config = new NLog.Config.LoggingConfiguration();
|
|
var logfile = new NLog.Targets.FileTarget("logfile") { FileName = LocalPaths.FixedConfigDir + "\\Bootstrapper-log-" + DateTime.Today.ToString("MM-dd-yyyy") + ".log" };
|
|
config.AddRuleForAllLevels(logfile);
|
|
LogManager.Configuration = config;
|
|
|
|
Application.Run(new NovetusLaunchForm());
|
|
}
|
|
}
|
|
}
|