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.ObjectA 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 booleandebug
-
Constructor Summary
Constructors Constructor Description Logger()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Loggercreate(java.lang.Class cls)If the "org.bytedeco.javacpp.logger" system property is set to "slf4j", returns newSlf4jLogger(Class), else returns newLogger().voiddebug(java.lang.String s)CallsSystem.err.println("Debug: " + s).voiderror(java.lang.String s)CallsSystem.err.println("Error: " + s).voidinfo(java.lang.String s)CallsSystem.err.println("Info: " + s).booleanisDebugEnabled()Returns the "org.bytedeco.javacpp.logger.debug" system property.booleanisErrorEnabled()Returns true.booleanisInfoEnabled()Returns true.booleanisWarnEnabled()Returns true.voidwarn(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).
-
-