Skip to main content



      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 03:14 Go to next message
Eclipse UserFriend
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 07:19 Go to previous messageGo to next message
Eclipse UserFriend
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 01:30 Go to previous message
Eclipse UserFriend
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: Thu Jul 24 00:02:56 EDT 2025

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

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

Back to the top