Package org.bytedeco.javacpp.tools
Class Logger
- java.lang.Object
-
- org.bytedeco.javacpp.tools.Logger
-
- Direct Known Subclasses:
Slf4jLogger
public class Logger extends java.lang.Object
A simple but extensible logging interface that dumps messages to the "standard" output streams by default.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static boolean
debug
-
Constructor Summary
Constructors Constructor Description Logger()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Logger
create(java.lang.Class cls)
If the "org.bytedeco.javacpp.logger" system property is set to "slf4j", returns newSlf4jLogger(Class)
, else returns newLogger()
.void
debug(java.lang.String s)
CallsSystem.err.println("Debug: " + s)
.void
error(java.lang.String s)
CallsSystem.err.println("Error: " + s)
.void
info(java.lang.String s)
CallsSystem.err.println("Info: " + s)
.boolean
isDebugEnabled()
Returns the "org.bytedeco.javacpp.logger.debug" system property.boolean
isErrorEnabled()
Returns true.boolean
isInfoEnabled()
Returns true.boolean
isWarnEnabled()
Returns true.void
warn(java.lang.String s)
CallsSystem.err.println("Warning: " + s)
.
-
-
-
Method Detail
-
create
public static Logger create(java.lang.Class cls)
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
public void debug(java.lang.String s)
CallsSystem.err.println("Debug: " + s)
.
-
info
public void info(java.lang.String s)
CallsSystem.err.println("Info: " + s)
.
-
warn
public void warn(java.lang.String s)
CallsSystem.err.println("Warning: " + s)
.
-
error
public void error(java.lang.String s)
CallsSystem.err.println("Error: " + s)
.
-
-