Class Logger
java.lang.Object
org.bytedeco.javacpp.tools.Logger
- Direct Known Subclasses:
Slf4jLogger
A simple but extensible logging interface that dumps messages to the "standard" output streams by default.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LoggerIf the "org.bytedeco.javacpp.logger" system property is set to "slf4j", returns newSlf4jLogger(Class), else returns newLogger().voidCallsSystem.err.println("Debug: " + s).voidCallsSystem.err.println("Error: " + s).voidCallsSystem.err.println("Info: " + s).booleanReturns the "org.bytedeco.javacpp.logger.debug" system property.booleanReturns true.booleanReturns true.booleanReturns true.voidCallsSystem.err.println("Warning: " + s).
-
Field Details
-
debug
static boolean debug
-
-
Constructor Details
-
Logger
public Logger()
-
-
Method Details
-
create
If the "org.bytedeco.javacpp.logger" system property is set to "slf4j", returns newSlf4jLogger(Class), else returns newLogger(). -
isDebugEnabled
public boolean isDebugEnabled()Returns the "org.bytedeco.javacpp.logger.debug" system property. -
isInfoEnabled
public boolean isInfoEnabled()Returns true. -
isWarnEnabled
public boolean isWarnEnabled()Returns true. -
isErrorEnabled
public boolean isErrorEnabled()Returns true. -
debug
CallsSystem.err.println("Debug: " + s). -
info
CallsSystem.err.println("Info: " + s). -
warn
CallsSystem.err.println("Warning: " + s). -
error
CallsSystem.err.println("Error: " + s).
-