Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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: Mon Jul 07 12:47:44 EDT 2025

Powered by FUDForum. Page generated in 0.28523 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top