Class SystemOutLogger

  • All Implemented Interfaces:
    PreprocessorLogger

    public final class SystemOutLogger
    extends java.lang.Object
    implements PreprocessorLogger
    An Easy logger which just output log messages into the system output streams
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static boolean FLAG_DEBUG_LEVEL  
      static java.lang.String PROPERTY_DEBUG_FLAG
      Name of system property to enable debug level logging.
    • Constructor Summary

      Constructors 
      Constructor Description
      SystemOutLogger()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void debug​(java.lang.String text)
      Log a debug message
      boolean equals​(java.lang.Object value)  
      void error​(java.lang.String text)
      Log an error message
      int hashCode()  
      void info​(java.lang.String text)
      Log an information message
      void warning​(java.lang.String text)
      Log a warning message
      • Methods inherited from class java.lang.Object

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

      • PROPERTY_DEBUG_FLAG

        public static final java.lang.String PROPERTY_DEBUG_FLAG
        Name of system property to enable debug level logging.
        See Also:
        Constant Field Values
      • FLAG_DEBUG_LEVEL

        private static final boolean FLAG_DEBUG_LEVEL
    • Constructor Detail

      • SystemOutLogger

        public SystemOutLogger()
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object value)
        Overrides:
        equals in class java.lang.Object
      • error

        public void error​(java.lang.String text)
        Description copied from interface: PreprocessorLogger
        Log an error message
        Specified by:
        error in interface PreprocessorLogger
        Parameters:
        text - the text to be output into the error log
      • info

        public void info​(java.lang.String text)
        Description copied from interface: PreprocessorLogger
        Log an information message
        Specified by:
        info in interface PreprocessorLogger
        Parameters:
        text - the text to be output into the information log
      • warning

        public void warning​(java.lang.String text)
        Description copied from interface: PreprocessorLogger
        Log a warning message
        Specified by:
        warning in interface PreprocessorLogger
        Parameters:
        text - the text to be output into the warning log
      • debug

        public void debug​(java.lang.String text)
        Description copied from interface: PreprocessorLogger
        Log a debug message
        Specified by:
        debug in interface PreprocessorLogger
        Parameters:
        text - the text to be output into the information log