Sergey Yeliseyev wrote:

Hi,

I have a suggestion which I think could be useful for many libsecondlife users. Libsecondlife is not using log4net, or any other logging system, but rather it sends all output directly to the console.

I’m not suggesting switching to log4net, but it would be great to declare SecondLife.Log() and SecondLife.DebugLog() virtual, so that they could be overridden in a subclass. It’s pretty inconvenient to have a lot of uncontrolled output in the console, so having those methods declared as virtual would be very helpful.

Best regards,

Sergey Yeliseyev


There is an event in the SecondLife object that you can register with, and logging output will go to your callback instead of the console. SecondLife.OnLog I think.

John Hurliman
_______________________________________________
libsl-dev mailing list
libsl-dev@opensecondlife.org
http://opensecondlife.org/cgi-bin/mailman/listinfo/libsl-dev

Reply via email to