Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Write log message in a single file - virgo - common - logging
Write log message in a single file - virgo - common - logging [message #986141] Mon, 19 November 2012 08:14 Go to next message
TRAN Lap is currently offline TRAN LapFriend
Messages: 7
Registered: November 2012
Junior Member
Dear Experts,

I am logging by importing the package "org.apache.commons.logging" of Virgo.

...
Log logger = LogFactory.getLog(Activator.class);
...
logger.info("start Bundle");
...


It's OK

But my log will be generated in the same file with the Virgo server (\serviceability\logs\log.log).

I do not want to use the same file with Virgo server, It's hard to find my messages.
How can I configure this logger to use another file? It's possible ?

Thanks so much!
Re: Write log message in a single file - virgo - common - logging [message #986437 is a reply to message #986141] Tue, 20 November 2012 12:19 Go to previous messageGo to next message
Hristo Iliev is currently offline Hristo IlievFriend
Messages: 156
Registered: May 2010
Location: Sofia, Bulgaria
Senior Member

Hi,

The logs should be generated in serviceability/logs/<application name>/log.log, so it shouldn't be too hard to find just your own logs.

You can check the User Guide - 13.3 Configuring Serviceability and Diagnostics for more information on how and where to add your custom configuration if this is not what you want.

Regards,
Hristo Iliev
Re: Write log message in a single file - virgo - common - logging [message #986592 is a reply to message #986437] Wed, 21 November 2012 06:30 Go to previous message
TRAN Lap is currently offline TRAN LapFriend
Messages: 7
Registered: November 2012
Junior Member
Hi Hristo,

Thanks for your instruction.

I can resolve my problem now.

It just only adds a new appender and logger in serviceability.xml file
Previous Topic:Exception when trying to use spring namespace handler in virgo
Next Topic:Spring framework 3.2.0.RC1 available for testing with Virgo
Goto Forum:
  


Current Time: Tue Apr 23 09:45:06 GMT 2024

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

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

Back to the top