Hi my friends,
I have problem to make the logging work with the log4j2.xml when packing
into jar file.
I have launcher.jar which calls oamcli.jar(has logging implementation and
log is working in eclipse)
How ever when I try to run :
java -Dlog4j.configurationFile=path\to\log4j2.xml
http://apache-logging.6191.n7.nabble.com/Discussion-about-correct-initialization-of-log4j2-in-OSGi-context-td39733.html
--
View this message in context:
http://apache-logging.6191.n7.nabble.com/ERROR-StatusLogger-Unable-to-locate-a-logging-implementation-using-SimpleLogger-tp39952p39955.html
I tested version 2.0 beta 9 (trunk) but the error is still there. Either the
documentation should be changed or the packages of common-logging-api should
be exported.
...
plugin
groupIdorg.apache.felix/groupId
artifactIdmaven-bundle-plugin/artifactId
sorry, the last post belongs to a other issue of log4j-jcl but it is
similary. The log4j 1.2 api can not be resolved. Again, the documentation is
wrong or the api has to be included in the export.
This is the right pom-configuration
properties
The doku. says:
Usage
Using the Commons Logging Bridge is straightforward. Simply add the bridge
jar along with the other Log4j 2 jars and all logging done using the Commons
Logging API will be routed to Log4j.
Should I replace the commons.logging jar with jcl-bridge or should I just
add the
Can you attach patches to Jira issues?
Ralph
On Aug 20, 2013, at 5:32 AM, Roland wrote:
sorry, the last post belongs to a other issue of log4j-jcl but it is
similary. The log4j 1.2 api can not be resolved. Again, the documentation is
wrong or the api has to be included in the export.
How does log4j2-jcl ensure that OSGi-bundles get its implemention but not the
commons.logging impl.?
--
View this message in context:
http://apache-logging.6191.n7.nabble.com/Replace-commons-logging-with-jcl-bridge-tp39970p39976.html
Sent from the Log4j - Users mailing list archive at
The log4j2-jcl jar contains a file
META-INF/services/org.apache.commons.logging.LogFactory which contains
org.apache.logging.log4j.jcl.LogFactoryImpl. Commons Logging uses that class
name to bind the implementation to its API.
Ralph
On Aug 20, 2013, at 7:53 AM, Roland wrote:
How does