Beispiel #1
0
        public static string GetCacheDirectory(LoggerSystems system)
        {
            string dir = Path.Combine(AppRootHelper.AppRoot, "cache", "subsystems", system.ToString());

            Directory.CreateDirectory(dir);

            return(dir);
        }
Beispiel #2
0
        public static void LogMessage(LoggerSystems subsystem, string format, params object[] args)
        {
            if (!s_Settings.EnableAll && (s_Settings.EnabledSystems & subsystem) == 0)
            {
                return;
            }

            OnLogReceive?.Invoke(subsystem, string.Format(format, args));
        }
Beispiel #3
0
 public void SetLogLevel(LoggerSystems systemFlags)
 {
     m_EnabledSystems = systemFlags;
 }