Hi Jeffery,

it seems that slf4j-log4j12-1.7.25.jar is in WEB-INF/lib, although it 
shouldn't  as only one impl is allowed. This has to be log4j-slf4j-impl 
from turbine. 

If you check by mvn dependency:tree, what does it say? 

Jetty should log into src/main/webapp/logs. 

By default the first entry in turbine.log would contain "resolved log4j2 
location", which may be in WEB-INF/conf, if its set in 
TurbineResources.props, e.g. log4j2.file = log4j2.xml.

Best regards, Georg



Von:    Jeffery Painter <[email protected]>
An:     Turbine Developers List <[email protected]>
Datum:  14.12.2018 15:14
Betreff:        turbine archetype and logging configuration problems




Hi Georg,

I am not seeing any logs being generated by the sample app built by the
maven archetype.  If you have time to check into this that would be
great! I am still not familiar enough with the log changes you made to
understand why it isn't working.  The archetype does generate the
log4j.xml file, but turbine doesn't seem to find it.

I tried updating the properties file to point directly to
WEB-INF/conf/log4j.xml but that didn't help either.

Console output:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in
[jar:file:/home/painter/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/testapp/WEB-INF/lib/log4j-slf4j-impl-2.11.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/home/painter/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/testapp/WEB-INF/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
explanation.
SLF4J: Actual binding is of type
[org.apache.logging.slf4j.Log4jLoggerFactory]
ERROR StatusLogger No Log4j 2 configuration file found. Using default
configuration (logging only errors to the console), or user
programmatically provided configurations. Set system property
'log4j2.debug' to show Log4j 2 internal initialization logging. See
https://logging.apache.org/log4j/2.x/manual/configuration.html for
instructions on how to configure Log4j 2
Dec 14, 2018 9:10:02 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-nio-8080"]


Thanks!

-- 
Jeff Painter




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to