Sent: Wednesday, July 23, 2014 11:47 AM
To: Keith Williams
Subject: Re: openEJB log4j
ok
thikn the easiest is to add in conf/system.properties
openejb.external.logger=true and put log4j.properties in lib/ otherwise
log4j config is split accross conf/logging.properties for tomee and
Here is the pom.xml where I've tried to have TomEE use log4j throughout.
Simply run:
mvn package tomee:run
to see the issues. No ejb log messages and I am getting an error from slf4j
which I don;t understand since I believe I have an implementation.
I would GREATLY appreciate a pom.xml that work
I've created a pom which demonstrates the problem. Before I send it to you,
could you just send me a logging.properties file that works with log4j
configured?
--
View this message in context:
http://tomee-openejb.979440.n4.nabble.com/openEJB-log4j-tp4670622p4670660.html
Sent from the TomEE User
Our setup is a mess so it isn't possible to give you a simple maven or ant
build (I wish it were).
--
View this message in context:
http://tomee-openejb.979440.n4.nabble.com/openEJB-log4j-tp4670622p4670657.html
Sent from the TomEE Users mailing list archive at Nabble.com.
I have also followed the tomcat instructions for using log4j with tomcat
http://tomcat.apache.org/tomcat-7.0-doc/logging.html#Using_Log4j
Specifically I've implemented step 4:
If you want to configure Tomcat to use log4j globally:
Put log4j.jar and tomcat-juli-adapters.jar from "extras" into
$C
OK. So my system.properties has the logger set to log4j.
logging.properties (not log4j.properties) looks like my previous post.
Here is my output: No openejb messages at all.
Listening for transport dt_socket at address: 5589
log4j: Parsing for [root] with value=[INFO, CATALINA, CONSOLE].
log4j:
So is this a valid/useful logging.properties file:
log4j.debug = true
log4j.rootLogger = INFO, CATALINA, CONSOLE
# Define all the appenders
log4j.appender.CATALINA = org.apache.log4j.DailyRollingFileAppender
log4j.appender.CATALINA.File = ${catalina.base}/logs/catalina
log4j.appender.CATALINA.App
What do mean by put log4j config in logging.properties?
log4j config goes in log4j.properties.
Do you have an example of logging.properties with log4j?
--
View this message in context:
http://tomee-openejb.979440.n4.nabble.com/openEJB-log4j-tp4670622p4670630.html
Sent from the TomEE Users
I forgot: this is Tomcat 7.0.47 and TomEE 1.6.0
--
View this message in context:
http://tomee-openejb.979440.n4.nabble.com/openEJB-log4j-tp4670622p4670625.html
Sent from the TomEE Users mailing list archive at Nabble.com.
Here is my system.properties:
# all this properties are added at JVM system properties at startup
# here some default Apache TomEE system properties
# for more information please see
http://openejb.apache.org/properties-listing.html
# openejb.check.classloader = false
# openejb.check.classloader.
I have been banging my head repeatedly trying to get openEJB to log using
log4j. Catalina is logging with log4j, as are my applications. But I cannot
figure out how to get openEJB to use log4j. It either does not log at all or
it uses Juli.
I would appreciate detailed instructions from someone who
11 matches
Mail list logo