/// <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(); }
private SzLogger(string logfile) { _LogFileName = logfile; CommUtil.InitConfig(); }