Menu

#3 If there is no Period entered there allways "_" was shown in the Logfilename

v1.0_(example)
open
Dave
None
5
2016-04-29
2016-04-29
ReS
No

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

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.