|Problem configuring a new logger in Serviceability.xml [message #665801]
||Sat, 16 April 2011 01:06
Registered: April 2011
Ref: http://www.blogger.com/comment.g?blogID=34692233&postID= 6205006153176823274|
I have loaded OSGi bundles into Virgo and am using a plan file. I want to add a new log file for my OSGi application and then log to that file from specific points in the application.
I have modified the serviceability.xml and configured a new logger (with name, say "xyz", and configured to write to a file xyz.log).
I have followed the pattern of the logger org.eclipse.virgo.medic.eventlog.localized in serviceability.xml to configure the above logger ('xyz').
In one of the bundles, I am calling loggerFactory.getLogger("xyz") and logging some info messages. But logger.info messages are not going into xyz.log file even though it is created. The messages are appearing on the Virgo console though.
Can anybody please suggest what is going wrong here? Thanks in advance.
Powered by FUDForum
. Page generated in 0.07973 seconds