Inheritance: Logger_LogItem
コード例 #1
0
 public void Setup_Thread()
 {
     ResetDatabase();
     try
     {
         if (UsingFileStorage)
         {
             SetPaths_UserData();
         }
         if (TMConfig.Current.TMSetup.OnlyLoadUserData)
         {
             "[TM_Xml_Database] TMConfig.Current.TMSetup.OnlyLoadUserData was set".info();
             UserData.loadTmUserData();
             return;
         }
         UserData.SetUp();
         Logger_Firebase.createAndHook();
         "TM is Rebooting".info();
         this.logTBotActivity("TM Xml Database", "TM is (re)starting and user Data is now loaded");
         this.userData().copy_FilesIntoWebRoot();
         if (UsingFileStorage)
         {
             SetPaths_XmlDatabase();
             this.handle_UserData_GitLibraries();
             loadDataIntoMemory();
             this.logTBotActivity("TM Xml Database", "Library Data is loaded");
         }
         UserData.createDefaultAdminUser();  // make sure the admin user exists and is configured
         this.logTBotActivity("TM Xml Database", "TM started at: {0}".format(DateTime.Now));
     }
     catch (Exception ex)
     {
         "[TM_Xml_Database] Setup: {0} \n\n".error(ex.Message, ex.StackTrace);
     }
 }
コード例 #2
0
ファイル: Logger_Firebase.cs プロジェクト: TeamMentor/Dev
 public static Logger_Firebase createAndHook()
 {
     try
     {
         var loggerFirebase = new Logger_Firebase();
         if (loggerFirebase.apiFirebase.site_Configured().isFalse())
         {
             return null;
         }
         "[Logger_Firebase] [createAndHook] Setting up Logger_Firebase".info();
         Current  = loggerFirebase;
         PublicDI.log.LogRedirectionTarget = Current;
         return Current;
     }
     catch(Exception ex)
     {
         ex.log();
         return null;
     }
 }
コード例 #3
0
ファイル: Logger_Firebase.cs プロジェクト: rbg13/Master
 public static Logger_Firebase createAndHook()
 {
     try
     {
         var loggerFirebase = new Logger_Firebase();
         if (loggerFirebase.apiFirebase.site_Configured().isFalse())
         {
             return(null);
         }
         "[Logger_Firebase] [createAndHook] Setting up Logger_Firebase".info();
         Current = loggerFirebase;
         PublicDI.log.LogRedirectionTarget = Current;
         return(Current);
     }
     catch (Exception ex)
     {
         ex.log();
         return(null);
     }
 }
コード例 #4
0
 public static Logger_Firebase createAndHook()
 {
     try
     {
         "[Logger_Firebase] [createAndHook] Setting up Logger_Firebase".info();
         var loggerFirebase = new Logger_Firebase();
         if (loggerFirebase.apiFirebase.site_Configured().isFalse())
         {
             "[Logger_Firebase] Firebase not configured, so disabling Firebase real-time logs/data support".debug();
             return(null);
         }
         Current = loggerFirebase;
         PublicDI.log.LogRedirectionTarget = Current;
         return(Current);
     }
     catch (Exception ex)
     {
         ex.log();
         return(null);
     }
 }