MCPcopy Create free account
hub / github.com/apache/tomcat / silence

Method silence

java/org/apache/catalina/startup/Tomcat.java:893–902  ·  view source on GitHub ↗
(Host host, String contextPath)

Source from the content-addressed store, hash-verified

891 }
892
893 private void silence(Host host, String contextPath) {
894 String loggerName = getLoggerName(host, contextPath);
895 Logger logger = Logger.getLogger(loggerName);
896 pinnedLoggers.put(loggerName, logger);
897 if (silent) {
898 logger.setLevel(Level.WARNING);
899 } else {
900 logger.setLevel(Level.INFO);
901 }
902 }
903
904
905 /**

Callers 2

addContextMethod · 0.95
addWebappMethod · 0.95

Calls 3

getLoggerNameMethod · 0.95
getLoggerMethod · 0.65
putMethod · 0.65

Tested by

no test coverage detected