mirror of
https://github.com/opensim/opensim.git
synced 2026-07-31 05:45:37 +08:00
WebStats will now use actual logfile as specified in OpenSim.exe.config rather than hardcoded ./OpenSim.log. This allows for rotating logs and other file appender types
This commit is contained in:
@@ -420,7 +420,7 @@ namespace OpenSim.Region.UserStatistics
|
||||
Encoding encoding = Encoding.ASCII;
|
||||
int sizeOfChar = encoding.GetByteCount("\n");
|
||||
byte[] buffer = encoding.GetBytes("\n");
|
||||
string logfile = Util.logDir() + "/" + "OpenSim.log";
|
||||
string logfile = Util.logFile();
|
||||
FileStream fs = new FileStream(logfile, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
|
||||
Int64 tokenCount = 0;
|
||||
Int64 endPosition = fs.Length / sizeOfChar;
|
||||
|
||||
Reference in New Issue
Block a user