Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » Virgo and log4j
Virgo and log4j [message #647068] Tue, 04 January 2011 13:10 Go to next message
Jacob Hameiri is currently offline Jacob HameiriFriend
Messages: 43
Registered: December 2010
Member
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 13:20]

Report message to a moderator

Re: Virgo and log4j [message #647073 is a reply to message #647068] Tue, 04 January 2011 13:47 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn NormingtonFriend
Messages: 1222
Registered: July 2009
Senior Member
Please could you post the full warning?
Re: Virgo and log4j [message #647079 is a reply to message #647068] Tue, 04 January 2011 14:01 Go to previous messageGo to next message
Jacob Hameiri is currently offline Jacob HameiriFriend
Messages: 43
Registered: December 2010
Member
[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 08:31 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn NormingtonFriend
Messages: 1222
Registered: July 2009
Senior Member
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 16:36 Go to previous message
Dennis is currently offline DennisFriend
Messages: 12
Registered: September 2010
Junior Member
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: Sat Apr 27 04:23:14 GMT 2024

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

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

Back to the top