Skip to main content



      Home
Home » Eclipse Projects » Virgo » Virgo and log4j
Virgo and log4j [message #647068] Tue, 04 January 2011 08:10 Go to next message
Eclipse UserFriend
Hi,
I am trying to use log4j in my par.
I can see the log file created in $SERVER_HOME/serviceability/logs/application_name/log.log but it does not contain my log entries ( only System.out and System.err ) and Virgo logging.
also I get this warning: log4j:WARN No appenders could be found for logger...

Regards,
Jacob

[Updated on: Tue, 04 January 2011 08:20] by Moderator

Re: Virgo and log4j [message #647073 is a reply to message #647068] Tue, 04 January 2011 08:47 Go to previous messageGo to next message
Eclipse UserFriend
Please could you post the full warning?
Re: Virgo and log4j [message #647079 is a reply to message #647068] Tue, 04 January 2011 09:01 Go to previous messageGo to next message
Eclipse UserFriend
[2011-01-04 13:52:05.537] region-dm-11 System.err log4j:WARN No appenders could be found for logger (simplebundle.loader).
[2011-01-04 13:52:05.540] region-dm-11 System.err log4j:WARN Please initialize the log4j system properly.
[2011-01-04 13:52:05.544] region-dm-11 System.err log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

Thanks for you help,
Jacob
Re: Virgo and log4j [message #647225 is a reply to message #647079] Wed, 05 January 2011 03:31 Go to previous messageGo to next message
Eclipse UserFriend
There's not much to go on. I suggest you reproduce the behaviour with a minimal testcase and raise a bug.
Re: Virgo and log4j [message #650081 is a reply to message #647068] Fri, 21 January 2011 11:36 Go to previous message
Eclipse UserFriend
I am not sure if this is the solution to your problem, but I just learned this myself today and it seems related.

Check out the slf4j bindings for log4j: http://www.slf4j.org/legacy.html

Turns out that these bindings come with the Virgo installation, so all you need to do is not include log4j in the repository directory. Then slf4j bindings will intercept the calls and log accordingly.

Previous Topic:Create a web bundle project, and deploy it within Eclipse
Next Topic:virgo-web-server-2.1.0.RELEASE/bin/dmk.sh: line 210: OTHER_ARGS+= -jmxport: command not found
Goto Forum:
  


Current Time: Thu Jul 24 13:30:55 EDT 2025

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

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

Back to the top