Class Logger

java.lang.Object
org.bytedeco.javacpp.tools.Logger
Direct Known Subclasses:
Slf4jLogger

public class Logger extends Object
A simple but extensible logging interface that dumps messages to the "standard" output streams by default.
  • Field Details

    • debug

      static boolean debug
  • Constructor Details

    • Logger

      public Logger()
  • Method Details

    • create

      public static Logger create(Class cls)
      If the "org.bytedeco.javacpp.logger" system property is set to "slf4j", returns new Slf4jLogger(Class), else returns new Logger().
    • 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(String s)
      Calls System.err.println("Debug: " + s).
    • info

      public void info(String s)
      Calls System.err.println("Info: " + s).
    • warn

      public void warn(String s)
      Calls System.err.println("Warning: " + s).
    • error

      public void error(String s)
      Calls System.err.println("Error: " + s).