File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed
spring-core/src/main/java/org/springframework/core/log Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,51 @@ public final Log getLog() {
68
68
}
69
69
70
70
71
+ // Log level checks
72
+
73
+ /**
74
+ * Is fatal logging currently enabled?
75
+ */
76
+ public boolean isFatalEnabled () {
77
+ return this .log .isFatalEnabled ();
78
+ }
79
+
80
+ /**
81
+ * Is error logging currently enabled?
82
+ */
83
+ public boolean isErrorEnabled () {
84
+ return this .log .isErrorEnabled ();
85
+ }
86
+
87
+ /**
88
+ * Is warn logging currently enabled?
89
+ */
90
+ public boolean isWarnEnabled () {
91
+ return this .log .isWarnEnabled ();
92
+ }
93
+
94
+ /**
95
+ * Is info logging currently enabled?
96
+ */
97
+ public boolean isInfoEnabled () {
98
+ return this .log .isInfoEnabled ();
99
+ }
100
+
101
+ /**
102
+ * Is debug logging currently enabled?
103
+ */
104
+ public boolean isDebugEnabled () {
105
+ return this .log .isDebugEnabled ();
106
+ }
107
+
108
+ /**
109
+ * Is trace logging currently enabled?
110
+ */
111
+ public boolean isTraceEnabled () {
112
+ return this .log .isTraceEnabled ();
113
+ }
114
+
115
+
71
116
// Plain log methods
72
117
73
118
/**
You can’t perform that action at this time.
0 commit comments