2021-11-13 22:56:56 +02:00
|
|
|
|
using NLog;
|
|
|
|
|
using System;
|
2021-06-04 22:58:40 +03:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
2021-09-02 02:35:20 +03:00
|
|
|
|
namespace Novetus.Bootstrapper
|
2021-06-04 22:58:40 +03:00
|
|
|
|
{
|
|
|
|
|
static class NovetusLaunch
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The main entry point for the application.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[STAThread]
|
|
|
|
|
static void Main()
|
|
|
|
|
{
|
|
|
|
|
Application.EnableVisualStyles();
|
|
|
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
2021-11-13 22:56:56 +02:00
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
|
2021-06-04 22:58:40 +03:00
|
|
|
|
Application.Run(new NovetusLaunchForm());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|