static Log() { TrinityC.Init(); try { TrinityConfig.LoadTrinityConfig(); } catch { Log.WriteLine(LogLevel.Error, "Failure to load config file, falling back to default log behavior"); } string unitTestAssemblyName = "Microsoft.VisualStudio.QualityTools.UnitTestFramework"; bool isInUnitTest = AppDomain.CurrentDomain.GetAssemblies() .Any(a => a.FullName.StartsWith(unitTestAssemblyName, StringComparison.Ordinal)); if (isInUnitTest) { WriteLine(LogLevel.Info, "UnitTestFramework detected. Enabling echo callback."); var LogFilename = Path.Combine(TrinityConfig.LogDirectory, "trinity-[" + DateTime.Now.ToStringForFilename() + "].log"); new Thread(_unitTestLogEchoThread).Start(LogFilename); } BackgroundThread.AddBackgroundTask(new BackgroundTask(CollectLogEntries, c_LogEntryCollectorIdleInterval)); }
static Storage() { try { TrinityConfig.LoadTrinityConfig(); } catch { Log.WriteLine(LogLevel.Error, "Failure to load config file, falling back to default Storage behavior"); } }
static LocalMemoryStorage() { TrinityC.Init(); try { TrinityConfig.LoadTrinityConfig(); } catch { Log.WriteLine(LogLevel.Error, "Failure to load config file, falling back to default LocalMemoryStorage behavior"); } CSynchronizeStorageRoot(); }
static Log() { TrinityC.Init(); try { TrinityConfig.LoadTrinityConfig(); } catch { Log.WriteLine(LogLevel.Error, "Failure to load config file, falling back to default log behavior"); } BackgroundThread.AddBackgroundTask(new BackgroundTask(CollectLogEntries, c_LogEntryCollectorIdleInterval)); }
static LocalMemoryStorage() { InternalCalls.__init(); TrinityConfig.LoadTrinityConfig(); //BackgroundThread.StartMemoryStorageBgThreads(); }
static Storage() { TrinityConfig.LoadTrinityConfig(); }
static LocalMemoryStorage() { TrinityC.Init(); TrinityConfig.LoadTrinityConfig(); //BackgroundThread.StartMemoryStorageBgThreads(); }