Exemplo n.º 1
0
 private void GenFileLog(string str, eI2LogLevel thisLevel)
 {
     if (logLevel <= thisLevel)
     {
         KnownFiles.ioAppend(KnownFiles.eKnownFiles.Log, _2InfoDisplay_DebugOut.PreForLevel(thisLevel) + FileLog_GetPreText() + str);
     }
 }
Exemplo n.º 2
0
        private void fileLog(bool isWrite, string msg)
        {
            if (ClearLogFirst && !ClearLogFirst_Done)
            {
                ClearLogFirst_Done = true;
                KnownFiles.ioDelete(KnownFiles.eKnownFiles.AndroidCom);
                KnownFiles.ioAppend(KnownFiles.eKnownFiles.AndroidCom, Endpoint);
            }
            var line = $"{DateTime.UtcNow.ToSwissTime(false)}: {(isWrite ? "pc --> a" : "pc <-- a")}: {msg}";

            KnownFiles.ioAppend(KnownFiles.eKnownFiles.AndroidCom, line);
        }