Re: Need help on setting up log4j.xml

2016-06-06 Thread Romain Manni-Bucau
it just loads it as a log4j.properties file so using log4j properties syntax it works. Romain Manni-Bucau @rmannibucau | Blog | Old Wordpress Blog | Github

Re: Need help on setting up log4j.xml

2016-06-06 Thread Dignesh
so you mean I can use the logging.properties for log4j configuration. -I assume that we need to add log4j.xml content in to logging.properties to achieve this ? Or Can you please provide me example of logging.properties which uses log4j.xml. -- View this message in context:

Re: Need help on setting up log4j.xml

2016-06-06 Thread Romain Manni-Bucau
2016-06-06 10:35 GMT+02:00 Dignesh : > Thank you very much..It is working now. > > Is there any way we can eliminate adding the log4j.jar and log4j.xml in > tomee lib directory and generate logging.Because the way now it is working > is, we need them to be added in tomee lib

Re: Need help on setting up log4j.xml

2016-06-06 Thread Dignesh
Thank you very much..It is working now. Is there any way we can eliminate adding the log4j.jar and log4j.xml in tomee lib directory and generate logging.Because the way now it is working is, we need them to be added in tomee lib directory. Is there any other way we can do by modifying the

Re: Need help on setting up log4j.xml

2016-06-03 Thread Romain Manni-Bucau
1. system.properties: openejb.log.factory = log4j openejb.logger.external = true log4j.debug=true 2.lib/log4j.xml: http://jakarta.apache.org/log4j/; >

Re: Need help on setting up log4j.xml

2016-06-03 Thread Dignesh
artesia.ear system.properties log4j.xml tomee.xml

Re: Need help on setting up log4j.xml

2016-06-03 Thread Romain Manni-Bucau
Maybe try to take the time to setup your installation with tomee-maven-plugin to reproduce it and share us something we can inspect (src/main/tomee/conf for conf folder, src/main/tomee/libfor lib folder and log4j:log4j:1.2.17 to add log4j to libs. Finally mvn tomee:run to start) Romain

Re: Need help on setting up log4j.xml

2016-06-03 Thread Dignesh
Still the same issue Attached system.properties file system.properties -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/Need-help-on-setting-up-log4j-xml-tp4678735p4678749.html Sent from

Re: Need help on setting up log4j.xml

2016-06-03 Thread Romain Manni-Bucau
Add in conf/system.properties: openejb.logger.external=true Otherwise we historically read some particular files not very intuitively. Le 3 juin 2016 19:30, "Dignesh" a écrit : > Hi, > > Below are my configurations > > 1.added log4j.xml in conf folder > 2.Added

Re: Need help on setting up log4j.xml

2016-06-03 Thread Dignesh
Hi, Below are my configurations 1.added log4j.xml in conf folder 2.Added openejb.log.factory = log4j property in system.property file 3.Added commons-logging and log4j.jars in lib directory I am seeing the below warn messages in log. Is there any other configuration which i am missing .If not

Re: Need help on setting up log4j.xml

2016-06-03 Thread Romain Manni-Bucau
2016-06-03 14:05 GMT+02:00 Dignesh : > I have placed the xml in the same classloader of log4j.jar (lib directory), > still i dont see any log getting generated. > > What is the system property that needs to added to point the log4j location > ? > > > -Dlog4j.configuration=...

Re: Need help on setting up log4j.xml

2016-06-03 Thread Dignesh
I have placed the xml in the same classloader of log4j.jar (lib directory), still i dont see any log getting generated. What is the system property that needs to added to point the log4j location ? -- View this message in context:

Need help on setting up log4j.xml

2016-06-03 Thread Dignesh
Hello, I have created custom log4j.xml file and placed in the conf directory.I dont see any file with logging getting generated. I have placed log4j.jar in the lib folder as well Can any one please help me where I am going wrong.Is there any other configuration setting where i am missing ?