If there is no Period entered there allways "_" was shown in the Logfilename
Brought to you by:
dslewis
Hi,
the next unsightly: whe you do not enter a Period (like "Log.LogPeriod = elogperiod.day;") the Logfilename will allways shown a underline on his end "ERROR_.log"
I added/modify the following lines to fix this in "SetLogPath()":
string sPlaceholder = ""; sPlaceholder = String.IsNullOrEmpty(sPeriod) ? "" : "_"; string sFilePath; if (m_logbasepath == string.Empty) { sFilePath = Environment.CurrentDirectory.TrimEnd('\\') + "\\" + LogName + sPlaceholder + sPeriod + m_logfiletype; } else { if (!Directory.Exists(m_logbasepath)) { Directory.CreateDirectory(m_logbasepath); } sFilePath = m_logbasepath.TrimEnd('\\') + @"\" + LogName + sPlaceholder + sPeriod + m_logfiletype; }
Regards
Robert