Flusing simulator log buffer

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Flusing simulator log buffer

Erik Bainbridge (Apollo Manga)
Flusing simulator log buffer Is there a way of flushing the simulator log buffer without shutting down the simulator?  I'm using m_log.Info() to write debugging messages to it, but the only way I can get most of them written in any timely manner is to shut down the simulator.  There must be a better way!

Thanks,

Erik Gordon Bainbridge
Author, virtual worlds builder (avatar: Apollo Manga)
www.VirtualMarin.com
www.ErikBainbridge.com
www.WarriorBrothers.com
www.MountainBikeRoots.com  
_______________________________________________
Opensim-users mailing list
[hidden email]
http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users
Reply | Threaded
Open this post in threaded view
|

Re: Flusing simulator log buffer

justincc
I'm surprised to hear this since afaik (and in my immediate experience), log appends are flushed immediately.

You might want to try setting ImmediateFlush in config [1] but this is true by default and not changed by OpenSimulator
code.

[1] http://stackoverflow.com/questions/14963735/log4net-rollingfileappender-not-flushing-io-buffer-with-low-volume-log

On 19/01/15 18:54, Erik Gordon Bainbridge wrote:

> Is there a way of flushing the simulator log buffer without shutting down the simulator?  I'm using m_log.Info() to
> write debugging messages to it, but the only way I can get most of them written in any timely manner is to shut down the
> simulator.  There must be a better way!
>
> Thanks,
>
> Erik Gordon Bainbridge
> Author, virtual worlds builder (avatar: Apollo Manga)
> www.VirtualMarin.com <http://www.VirtualMarin.com>
> www.ErikBainbridge.com <http://www.ErikBainbridge.com>
> www.WarriorBrothers.com <http://www.WarriorBrothers.com>
> www.MountainBikeRoots.com <http://www.MountainBikeRoots.com>
>
>
> _______________________________________________
> Opensim-users mailing list
> [hidden email]
> http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users
>


--
Justin Clark-Casey (justincc)
OSVW Consulting
http://justincc.org
http://twitter.com/justincc
_______________________________________________
Opensim-users mailing list
[hidden email]
http://opensimulator.org/cgi-bin/mailman/listinfo/opensim-users