alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Struts example source code file (log4j.properties)

This example Struts source code file (log4j.properties) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Struts tags/keywords

f, f, iso8601, iso8601, l, l, warn, warn

The Struts log4j.properties source code

log4j.rootLogger = WARN, stdout

log4j.appender.stdout = org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Threshold = WARN
log4j.appender.stdout.Target   = System.out
log4j.appender.stdout.layout = org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern = %d{ISO8601} %-5p [%F:%L] : %m%n

# set to info to let the code be executed when doing unit test for this interceptor
log4j.category.com.opensymphony.xwork2.interceptor.LoggingInterceptor=INFO
log4j.category.com.opensymphony.xwork2.interceptor.TimerInterceptor=INFO

# set to debug to let the code be executed when doing unit test for this interceptor
log4j.category.com.opensymphony.xwork2.interceptor.ParametersInterceptor=DEBUG

# set to debug for testing timer interceptor with custom log category
log4j.category.com.mycompany.myapp.actiontiming=DEBUG

Other Struts examples (source code examples)

Here is a short list of links related to this Struts log4j.properties source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.