Ejemplo n.º 1
0
        public static void InitLogAtPath(string logFilePath, string _, bool doLogRotation)
        {
            Logger.s_loggerInited     = true;
            Logger.s_HdLoggerCallback = new Logger.HdLoggerCallback(Logger.HdLogger);
            Logger.s_processId        = Process.GetCurrentProcess().Id;
            Logger.s_processName      = Process.GetCurrentProcess().ProcessName;
            string directoryName = Path.GetDirectoryName(logFilePath);

            if (!Directory.Exists(directoryName))
            {
                Directory.CreateDirectory(directoryName);
            }
            Logger.s_logFilePath = logFilePath;
            Logger.LogLevelsInit();
            Logger.Open();
            if (!doLogRotation)
            {
                return;
            }
            Thread thread = new Thread((ThreadStart)(() => Logger.DoLogRotation()));

            if (((int)RegistryUtils.GetRegistryValue(Path.Combine(Strings.RegistryBaseKeyPath, "Client"), "RotateLog", (object)1, RegistryKeyKind.HKEY_LOCAL_MACHINE) == 0 ? 0 : 1) == 0)
            {
                return;
            }
            thread.IsBackground = true;
            thread.Start();
        }
Ejemplo n.º 2
0
 void IGraphics.PgaLoggerInit(Logger.HdLoggerCallback cb)
 {
     SysGGA.PgaLoggerInit(cb);
 }
Ejemplo n.º 3
0
 private static extern void PgaLoggerInit(Logger.HdLoggerCallback cb);
Ejemplo n.º 4
0
 private static extern void InitAudioLogger(Logger.HdLoggerCallback cb);