[Opensim-dev] About log files ...
Justin Clark-Casey
jjustincc at googlemail.com
Wed Aug 20 22:41:33 UTC 2008
Ursula MATOVA wrote:
> Hi list,
>
> Well, these past days, I experienced something interresting with
> OpenSim and scripting.
>
> I have a teleporter script that works really fine. But this one is
> really "verbose" ... ( both OpenSim.log & console ) here is an example
> of what I have on the console :
>
>
> 2008-08-20 22:38:58,769 INFO -
> OpenSim.Region.Environment.Scenes.SceneObjectGroup [SCENE]: Storing
> object Primitive, 59398aaf-98b3-46dc-b02f-ded554d4e046 in [KlinT World
> 0]
> 2008-08-20 22:39:16,767 INFO -
> OpenSim.Region.Environment.Scenes.SceneObjectGroup [SCENE]: Storing
> object Primitive, 59398aaf-98b3-46dc-b02f-ded554d4e046 in [KlinT World
> 0]
> 2008-08-20 22:39:34,810 INFO -
> OpenSim.Region.Environment.Scenes.SceneObjectGroup [SCENE]: Storing
> object Primitive, 59398aaf-98b3-46dc-b02f-ded554d4e046 in [KlinT World
> 0]
> 2008-08-20 22:39:52,796 INFO -
> OpenSim.Region.Environment.Scenes.SceneObjectGroup [SCENE]: Storing
> object Primitive, 59398aaf-98b3-46dc-b02f-ded554d4e046 in [KlinT World
> 0]
>
> For now it's ok, I don't use many scripts and often upgrade opensim to
> the latest svn, but this drive me to this idea :
>
> In case of a highly verbose log level, the log(s) file(s) grows fast.
> And when such file grows it could have a negative impact on global
> performances. Of course it's not the case for most of us, because we
> often upgrade our server components with the latest SVN builds, but in
> case of a real production system, this could be a problem.
>
> So, according to me, a feature is missing :
>
> - Embended log rotation,
> - Entry in OpenSim.ini to setup max log size,
> - Extend the console "set log level" command to also reduce the
> verbosity of the log files.
>
> Do you think it's a stupid idea ?
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
More information about the Opensim-dev
mailing list