Exemplo n.º 1
0
        public static void WriteException(LogElem t)
        {
            InitCLog();
            ///Определяем дату и время
            ///
            string dtM          = DateTime.Now.ToString();
            string WriteMessage = dtM + ";" + "EXCEPTION;" + "Func:" + t.PService + ";" + t.Message + ";";

            WriteFile(WriteMessage);
        }
Exemplo n.º 2
0
        public static void WriteInfo(LogElem t)
        {
            InitCLog();
            ///Определяем дату и время
            ///
            string dtM          = DateTime.Now.ToString();
            string WriteMessage = dtM + ";" + "INFO;" + "DNS:" + t.DnsNames + ";MAC:" + t.MacAdress + ";Login:"******";Ver:" + t.ClientVersion + ";";

            WriteMessage += t.PService + ";" + t.Message + ";";
            WriteFile(WriteMessage);
        }