Skip to content

Commit

Permalink
ATS-5 use right class for logger
Browse files Browse the repository at this point in the history
  • Loading branch information
madness-inc committed Dec 14, 2017
1 parent 08ccf5a commit 2d16820
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Expand Up @@ -32,7 +32,7 @@
*/
public class MongoSessionTrackerValve extends PersistentValve {

private final Log log = Utils.getLog(MongoPersistentManager.class);
private final Log log = Utils.getLog(MongoSessionTrackerValve.class);

public void invoke(Request request, Response response) throws IOException, ServletException {
try {
Expand Down
Expand Up @@ -53,7 +53,7 @@
*/
public class MongoStore extends StoreBase {

private final Log log = Utils.getLog(MongoPersistentManager.class);
private final Log log = Utils.getLog(MongoStore.class);

/** Property used to store the Session's ID */
private static final String idProperty = "_id";
Expand Down
8 changes: 5 additions & 3 deletions src/test/resources/log4j.properties
@@ -1,6 +1,8 @@
log4j.rootLogger = debug, stdout
log4j.rootLogger = trace, stdout
log4j.threshold = ALL

log4j.appender.stdout = org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout = org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern = %d{ISO8601} %-5p [%t] %-30c: %m%n
log4j.appender.stdout.layout = org.apache.log4j.EnhancedPatternLayout
log4j.appender.stdout.layout.ConversionPattern = %d{ISO8601} %-5p [%t] %-32c{1.}: %m%n

log4j.category.org.mongodb = info

0 comments on commit 2d16820

Please sign in to comment.