Class 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 new Slf4jLogger(Class), else returns new Logger().
      void debug​(java.lang.String s)
      Calls System.err.println("Debug: " + s).
      void error​(java.lang.String s)
      Calls System.err.println("Error: " + s).
      void info​(java.lang.String s)
      Calls System.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)
      Calls System.err.println("Warning: " + s).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • debug

        static boolean debug
    • Constructor Detail

      • Logger

        public Logger()
    • Method Detail

      • create

        public static Logger create​(java.lang.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​(java.lang.String s)
        Calls System.err.println("Debug: " + s).
      • info

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

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

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