Skip to content

Commit

Permalink
add reset method to SimpleLoggerFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
ceki committed Mar 17, 2013
1 parent 1c3e4c6 commit 6dd3a60
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions slf4j-simple/src/main/java/org/slf4j/impl/SimpleLoggerFactory.java
Expand Up @@ -61,4 +61,17 @@ public Logger getLogger(String name) {
}
return slogger;
}

/**
* Clear the internal logger cache.
*
* This method is intended to be called by classes (in the same package) for
* testing purposes. This method is internal. It can be modified, renamed or
* removed at any time without notice.
*
* You are strongly discouraged from calling this method in production code.
*/
void reset() {
loggerMap.clear();
}
}

0 comments on commit 6dd3a60

Please sign in to comment.