Make the opensim.ini logfile option really work (port of a fix from ROBUST)
parent
e49abf446a
commit
cb10700a1f
|
@ -82,7 +82,10 @@ namespace OpenSim
|
||||||
(log4net.Appender.FileAppender)m_logFileAppender;
|
(log4net.Appender.FileAppender)m_logFileAppender;
|
||||||
string fileName = startupConfig.GetString("LogFile", String.Empty);
|
string fileName = startupConfig.GetString("LogFile", String.Empty);
|
||||||
if (fileName != String.Empty)
|
if (fileName != String.Empty)
|
||||||
|
{
|
||||||
appender.File = fileName;
|
appender.File = fileName;
|
||||||
|
appender.ActivateOptions();
|
||||||
|
}
|
||||||
m_log.InfoFormat("[LOGGING] Logging started to file {0}", appender.File);
|
m_log.InfoFormat("[LOGGING] Logging started to file {0}", appender.File);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue