[Opensim-dev] About log files ...
Ursula MATOVA
ursula.matova at klintcentral.net
Thu Aug 21 05:40:47 UTC 2008
Well, just played with log4net :
changing log level in OpenSim.exe.config from INFO to WARN do the job ;)
About log rotation :
==> /etc/logrotate.d/opensim
# rotate the dekiwiki api log daily
/path/to/OpenSim.log {
daily
rotate 7
missingok
copytruncate
compress
}
To test LogRotation :
logrotate -f /etc/logrotate.d/opensim
So, seems to work, the log rotates :)
BUT
when a new event is logged,
the newly created OpenSim.log starts with it original size ( and all
supposed rotated informations ) ...
Regards,
Ursula.
Le 21 août 08 à 07:18, Ursula MATOVA a écrit :
> Thanks a lot Justin,
>
> the page you wrote is very helpfull :)
>
> Thanks again,
> Regards,
>
> Ursula.
>
> Le 21 août 08 à 00:41, Justin Clark-Casey a écrit :
>
>> Not at all. However, changing the log file levels (before startup)
>> can
>> already be done by editing OpenSim.exe.config (we use a package
>> called
>> log4net). I wrote up a scratch page on logging and how to go about
>> doing this at
>>
>> http://opensimulator.org/wiki/Logging#Changing_logging_levels_before_startup
>>
>> I think that log4net can also handle log rotation. It would be nice
>> if
>> someone could put some commented sections in files such as
>> OpenSim.exe.config to show how this could be done.
>>
>> --
>> justincc
>> Justin Clark-Casey
>> http://justincc.wordpress.com
>> _______________________________________________
>> Opensim-dev mailing list
>> Opensim-dev at lists.berlios.de
>> https://lists.berlios.de/mailman/listinfo/opensim-dev
>>
>
> _______________________________________________
> Opensim-dev mailing list
> Opensim-dev at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-dev
>
More information about the Opensim-dev
mailing list