MCPcopy
hub / github.com/qos-ch/slf4j / Log

Interface Log

jcl-over-slf4j/src/main/java/org/apache/commons/logging/Log.java:63–217  ·  view source on GitHub ↗

A simple logging interface abstracting logging APIs. In order to be instantiated successfully by LogFactory, classes that implement this interface must have a constructor that takes a single String parameter representing the "name" of this Log. The six logging levels used by L

Source from the content-addressed store, hash-verified

61 * @version $Id: Log.java,v 1.19 2004/06/06 21:16:04 rdonkin Exp $
62 */
63public interface Log {
64
65 // ----------------------------------------------------- Logging Properties
66
67 /**
68 * <p> Is debug logging currently enabled?
69 *
70 * <p> Call this method to prevent having to perform expensive operations
71 * (for example, <code>String</code> concatenation)
72 * when the log level is more than debug.
73 */
74 public boolean isDebugEnabled();
75
76 /**
77 * <p> Is error logging currently enabled?
78 *
79 * <p> Call this method to prevent having to perform expensive operations
80 * (for example, <code>String</code> concatenation)
81 * when the log level is more than error.
82 */
83 public boolean isErrorEnabled();
84
85 /**
86 * <p> Is fatal logging currently enabled?
87 *
88 * <p> Call this method to prevent having to perform expensive operations
89 * (for example, <code>String</code> concatenation)
90 * when the log level is more than fatal.
91 */
92 public boolean isFatalEnabled();
93
94 /**
95 * <p> Is info logging currently enabled?
96 *
97 * <p> Call this method to prevent having to perform expensive operations
98 * (for example, <code>String</code> concatenation)
99 * when the log level is more than info.
100 *
101 * @return true if info enabled, false otherwise
102 */
103 public boolean isInfoEnabled();
104
105 /**
106 * <p> Is trace logging currently enabled?
107 *
108 * <p> Call this method to prevent having to perform expensive operations
109 * (for example, <code>String</code> concatenation)
110 * when the log level is more than trace.
111 *
112 * @return true if trace enabled, false otherwise
113 */
114 public boolean isTraceEnabled();
115
116 /**
117 * <p> Is warn logging currently enabled?
118 *
119 * <p> Call this method to prevent having to perform expensive operations
120 * (for example, <code>String</code> concatenation)

Callers 49

verifyMethod · 0.95
testIsEnabledAPIMethod · 0.95
isDebugEnabledMethod · 0.65
isDebugEnabledMethod · 0.65
testIsEnabledAPIMethod · 0.95
isErrorEnabledMethod · 0.65
isFatalEnabledMethod · 0.65
isErrorEnabledMethod · 0.65
isFatalEnabledMethod · 0.65
testIsEnabledAPIMethod · 0.95
testIsEnabledAPIMethod · 0.95
isInfoEnabledMethod · 0.65

Implementers 4

SLF4JLogjcl-over-slf4j/src/main/java/org/apach
SLF4JLocationAwareLogjcl-over-slf4j/src/main/java/org/apach
NoOpLogjcl-over-slf4j/src/main/java/org/apach
SimpleLogjcl-over-slf4j/src/main/java/org/apach

Calls

no outgoing calls

Tested by

no test coverage detected