-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #67: Got Tomcat logging working correctly inside Eclipse.
Had to do this in order to debug what was going on.
- Loading branch information
1 parent
06ef7ae
commit c08539e
Showing
3 changed files
with
99 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<configuration scan="true" scanPeriod="5 seconds"> | ||
<!-- Required to ensure that JUL respects log level changes. --> | ||
<contextListener class="ch.qos.logback.classic.jul.LevelChangePropagator" /> | ||
|
||
<!-- This appender will be sent all of the app's logging statements. --> | ||
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
<encoder> | ||
<pattern>%date{ISO8601} [%thread] %-5level %logger{36} - %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<!-- There's a bug in this class' logging, that causes spurious exceptions | ||
if it's enabled at the debug level. --> | ||
<logger | ||
name="org.hibernate.loader.plan.exec.process.internal.EntityReferenceInitializerImpl" | ||
level="info" /> | ||
|
||
<!-- These loggers will print all CXF requests/responses to the log, at | ||
the 'info' level (set to 'warn' or higher to disable them). Actually uses | ||
the application's custom LoggerForInbound and LoggerForOutbound classes, | ||
which attempt to exclude passwords from the log output. --> | ||
<logger name="org.apache.cxf.interceptor.LoggingInInterceptor" | ||
level="info" /> | ||
<logger name="org.apache.cxf.interceptor.LoggingOutInterceptor" | ||
level="info" /> | ||
|
||
<!-- This logger will print all Spring MVC requests/responses to the log, | ||
at the 'trace' level (set to 'debug' or higher to disable it). Does not attempt | ||
to escape passwords or other sensitive data; MUST NOT be enabled in production. --> | ||
<logger | ||
name="com.justdavis.karl.rpstourney.webapp.RequestResponseLoggingInterceptor" | ||
level="trace" /> | ||
|
||
<!-- Set to the 'all' level when debugging issues with Spring MVC. --> | ||
<logger name="org.springframework.web" level="info" /> | ||
|
||
<!-- Log at the INFO level and above by default, to the 'STDOUT' appender. --> | ||
<root level="info"> | ||
<appender-ref ref="STDOUT" /> | ||
</root> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
############################################################ | ||
# This is the Java Logging configuration file for Tomcat. | ||
# Only Tomcat itself will use this. The applications hosted | ||
# in it will use Logback. | ||
############################################################ | ||
|
||
handlers = java.util.logging.ConsoleHandler | ||
.handlers = java.util.logging.ConsoleHandler | ||
|
||
############################################################ | ||
# Handler specific properties. | ||
# Describes specific configuration info for Handlers. | ||
############################################################ | ||
|
||
java.util.logging.ConsoleHandler.level = FINE | ||
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter | ||
java.util.logging.SimpleFormatter.format=%1$tY-%1$tm-%1$td %1$tH:%1$tM:%1$tS,%1$tL %4$s %2$s - %5$s%6$s%n | ||
|
||
|
||
############################################################ | ||
# Facility specific properties. | ||
# Provides extra control for each logger. | ||
############################################################ | ||
|
||
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = INFO | ||
|
||
org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/manager].level = INFO | ||
|
||
# For example, set the org.apache.catalina.util.LifecycleBase logger to log | ||
# each component that extends LifecycleBase changing state: | ||
#org.apache.catalina.util.LifecycleBase.level = FINE |