示例#1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="logPath"></param>
        /// <param name="msg"></param>
        /// <param name="exception"></param>
        public void WriterLog(String logPath, Object msg, Exception exception = null)
        {
            CommUtil.ResetLogDirectory(logPath);
            WriterFile wfile  = new WriterFile(logPath);
            String     logmsg = GetLogString("FILE ", msg, exception, 2);

            wfile.Writer(logmsg);
            wfile.Close();
        }
示例#2
0
 private SzLogger(string logfile)
 {
     _LogFileName = logfile;
     CommUtil.InitConfig();
 }