Ejemplo n.º 1
0
        public void put(LogType pLogType, string pMessage)
        {
            var wCurrentDateTime = DateTime.Now;
            var wPutData         = $"[{wCurrentDateTime.ToString("yyyy/MM/dd")}]" +
                                   $"[{wCurrentDateTime.ToString("HH:mm:ss")}]" +
                                   $"[{pLogType.GetName()}]" +
                                   $"[{pMessage}]";

            File.AppendAllLines(this._logFile, new[] { wPutData }, Encoding.GetEncoding("shift_jis"));
        }