Package org.bytedeco.javacpp.tools
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 Logger
If the "org.bytedeco.javacpp.logger" system property is set to "slf4j", returns newSlf4jLogger(Class)
, else returns newLogger()
.void
CallsSystem.err.println("Debug: " + s)
.void
CallsSystem.err.println("Error: " + s)
.void
CallsSystem.err.println("Info: " + s)
.boolean
Returns the "org.bytedeco.javacpp.logger.debug" system property.boolean
Returns true.boolean
Returns true.boolean
Returns true.void
CallsSystem.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)
.
-