Skip to main content


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 05:06 Go to next message
Murali  is currently offline Murali Friend
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 08:17 Go to previous messageGo to next message
Hristo Iliev is currently offline Hristo IlievFriend
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 08:28 Go to previous messageGo to next message
Murali  is currently offline Murali Friend
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 15:18 Go to previous messageGo to next message
Murali  is currently offline Murali Friend
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 14:52 Go to previous message
Hristo Iliev is currently offline Hristo IlievFriend
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: Sat Dec 07 18:54:28 GMT 2024

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

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

Back to the top