Created
September 6, 2011 15:21
-
-
Save inz/1197839 to your computer and use it in GitHub Desktop.
Policy Optimization: Additional Material
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
log4j.rootLogger=DEBUG, OPT | |
log4j.appender.OPT=org.apache.log4j.RollingFileAppender | |
log4j.appender.OPT.File=opt.log | |
log4j.appender.OPT.layout=org.apache.log4j.PatternLayout | |
# Canonical Log Format Pattern | |
log4j.appender.A1.layout.ConversionPattern=%d %m%n |
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
public void logRequest(Request r, String message) { | |
logger.info(String.format("%s %s %s", r.getId(), message, r.getStats())); | |
} | |
public void logError(Request r, String message) { | |
logger.error(String.format("%s Error %s", r.getId(), message)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment