private static void SetLogger() { string path = Config.GetValue("logFilePath", null); string prefix = Config.GetValue("logFilePrefix", ""); if (path != null) { LogMedia.SetTextFileLogger(path, prefix); } }
public static void StartServer(System.Windows.Forms.TextBox tb) { if (tb != null) { LogMedia.SetTextBoxLogger(tb); } AegisTask.Run(() => { // Initialize AegisFramework Framework.Initialized += Framework_Initialized; Framework.Running += Framework_Running; Framework.Finalizing += Framework_Finalizing; Framework.Finalized += Framework_Finalized; Framework.Initialize(false); }); }
private static void Framework_Finalized() { LogMedia.ReleaseAllLogger(); FinalizedHandler?.Invoke(); }