<div dir="ltr"><div dir="ltr"><div>Hi, slf4j community,</div><div><br></div><div>I have a question on slf4j-api's Level definition.</div><div><br></div><div>As far as I know, the slf4j community is planning to support the dynamic logging level change feature with <a href="https://jira.qos.ch/browse/SLF4J-124">https://jira.qos.ch/browse/SLF4J-124</a>. However, since slf4j-api only defines five levels, omitting `ALL` and `OFF` (below), we can't call a method like `logger.setLevel(Level.OFF)` - which is available in other logging frameworks.</div><div><br></div><div><a href="https://github.com/qos-ch/slf4j/blob/master/slf4j-api/src/main/java/org/slf4j/event/EventConstants.java">https://github.com/qos-ch/slf4j/blob/master/slf4j-api/src/main/java/org/slf4j/event/EventConstants.java</a></div><div><br></div><div>For example, logback supports seven levels (i.e., five common ones + ALL, OFF):</div><div><br></div><div><a href="https://github.com/qos-ch/logback/blob/master/logback-classic/src/main/java/ch/qos/logback/classic/Level.java">https://github.com/qos-ch/logback/blob/master/logback-classic/src/main/java/ch/qos/logback/classic/Level.java</a></div><div><br></div><div>Log4j supports 8 levels (i.e., five common ones + FATAL, ALL, OFF):</div><div><br></div><div><a href="https://logging.apache.org/log4j/2.x/log4j-api/apidocs/org/apache/logging/log4j/Level.html">https://logging.apache.org/log4j/2.x/log4j-api/apidocs/org/apache/logging/log4j/Level.html</a></div><div><br></div><div>Java's official logging level definition is a little bit different, but they also support ALL, OFF:</div><div><br></div><div><a href="https://docs.oracle.com/javase/7/docs/api/java/util/logging/Level.html">https://docs.oracle.com/javase/7/docs/api/java/util/logging/Level.html</a></div><div><br></div><div>So, in my humble opinion, to make the dynamic logging level change feature more complete, slf4j-api is much better to support ALL and OFF levels. What do you think?</div><div><br></div><div>If you agree and open an issue, I am willing to contribute.</div><div><br></div><div>Best,</div><div>Dongjin</div><div><br></div><div>--</div><div><br></div><div>Dongjin Lee</div><div><br></div><div>A hitchhiker in the mathematical world.</div><div><br></div><div>github: <a href="http://github.com/dongjinleekr">github.com/dongjinleekr</a></div><div>keybase: <a href="https://keybase.io/dongjinleekr">https://keybase.io/dongjinleekr</a></div><div>linkedin: <a href="http://kr.linkedin.com/in/dongjinleekr">kr.linkedin.com/in/dongjinleekr</a></div><div>speakerdeck: <a href="http://speakerdeck.com/dongjin">speakerdeck.com/dongjin</a></div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><i></i></div></div></div></div></div></div></div></div></div>