Scripting?

This commit is contained in:
Sardelka
2022-05-31 19:35:01 -08:00
parent b863b7037a
commit a8a16fac61
14 changed files with 273 additions and 189 deletions

View File

@ -9,8 +9,14 @@ namespace RageCoop.Server
class Program
{
public static bool ReadyToStop = false;
public static Core.Logging.Logger Logger;
static void Main(string[] args)
{
Logger=new Core.Logging.Logger()
{
LogPath="RageCoop.Server.log",
UseConsole=true,
};
try
{
#if DEBUG
@ -45,7 +51,7 @@ namespace RageCoop.Server
}
catch (Exception e)
{
Logging.Error(e.InnerException?.Message ?? e.Message);
Program.Logger.Error(e.InnerException?.Message ?? e.Message);
Console.ReadLine();
}
}