File tree 1 file changed +17
-2
lines changed
logback-classic/src/main/java/ch/qos/logback/classic 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,11 @@ public final class Level implements java.io.Serializable {
45
45
public static final Integer ALL_INTEGER = ALL_INT ;
46
46
47
47
/**
48
- * The <code>OFF</code> is used to turn off logging.
48
+ * The <code>OFF</code> is used to turn off logging. It is intended to be used
49
+ * for logging system configuration.
50
+ *
51
+ * Warning: it should never be passed as an argument to logger methods
52
+ * in a regular log statement.
49
53
*/
50
54
public static final Level OFF = new Level (OFF_INT , "OFF" );
51
55
@@ -79,7 +83,18 @@ public final class Level implements java.io.Serializable {
79
83
public static final Level TRACE = new Level (TRACE_INT , "TRACE" );
80
84
81
85
/**
82
- * The <code>ALL</code> is used to turn on all logging.
86
+ * <p>The <code>ALL</code> is used to turn on all logging. The <code>ALL</code> level is vestigial from
87
+ * log4j 1.x.
88
+ * </p>
89
+ *
90
+ * <p>In logback, where the Level class is final, logging can be turned on for all levels by setting
91
+ * a logger's level to <code>TRACE</code>.
92
+ * </p>
93
+ *
94
+ * <p>Thus, the <code>ALL</code> level is marked as deprecated.
95
+ * </p>
96
+ *
97
+ * @deprecated with no replacement
83
98
*/
84
99
public static final Level ALL = new Level (ALL_INT , "ALL" );
85
100
You can’t perform that action at this time.
0 commit comments