Created
September 6, 2011 15:21
Policy Optimization: Additional Material
This file contains hidden or 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 hidden or 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