Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Problem configuring a new logger in Serviceability.xml(Trying to configure a new logger and log to a new file in Virgo, but not able to.)
Problem configuring a new logger in Serviceability.xml [message #665801] Sat, 16 April 2011 01:06 Go to next message
Murali  is currently offline Murali
Messages: 3
Registered: April 2011
Junior Member
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.

Murali
Re: Problem configuring a new logger in Serviceability.xml [message #665806 is a reply to message #665801] Sat, 16 April 2011 04:17 Go to previous messageGo to next message
Hristo Iliev is currently offline Hristo Iliev
Messages: 156
Registered: May 2010
Location: Sofia, Bulgaria
Senior Member

Can you please attach your serviceability.xml ?
Re: Problem configuring a new logger in Serviceability.xml [message #665807 is a reply to message #665806] Sat, 16 April 2011 04:28 Go to previous messageGo to next message
Murali  is currently offline Murali
Messages: 3
Registered: April 2011
Junior Member
Thanks a lot for your response. File attached. Please take a look at the logger with name 'xyz'.
Re: Problem configuring a new logger in Serviceability.xml [message #667242 is a reply to message #665807] Wed, 27 April 2011 11:18 Go to previous messageGo to next message
Murali  is currently offline Murali
Messages: 3
Registered: April 2011
Junior Member
Hi,

Any update on this, please?
Re: Problem configuring a new logger in Serviceability.xml [message #667405 is a reply to message #667242] Thu, 28 April 2011 10:52 Go to previous message
Hristo Iliev is currently offline Hristo Iliev
Messages: 156
Registered: May 2010
Location: Sofia, Bulgaria
Senior Member

The configuration looks OK to me.

Can you also provide a code snippet demonstrating how you obtain and use the logging?
Previous Topic:Milestone 3.0.0.M04 is out
Next Topic:Dm-server vs Virgo
Goto Forum:
  


Current Time: Thu Jul 24 09:03:35 EDT 2014

Powered by FUDForum. Page generated in 0.07973 seconds