Re: [2.X] Programmatic configuration

2012-08-08 Thread Ralph Goers
There are several unit tests that you can look at. SocketServerTest is doing a fair amount. Of course, if you also have a configuration file and it is modified you are going to lose any of the programmatic configuration you have done. To get the root logger just do ctx.getLogger(""). However,

[2.X] Programmatic configuration

2012-08-08 Thread Simone Tripodi
Hi all guys, I have been maybe lazy on that, but I didn't figure out how to provide a configuration to log4j programmatically, without using a textual representation. How to obtain a simple configuration which reflects the XML one on [1]? Many thanks in advance, all the best! -Simo [1] https://

Re: [2.X] Null object returned for root

2012-08-08 Thread Simone Tripodi
Cool, thanks to you Ralph! I am going to rebuilt it locally and have a test session. Have a nice day, all the best! -Simo http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripodi http://www.99soft.org/ On Wed, Aug 8, 2012 at 6:31 AM, Ralph