Class FocessLogger


  • public class FocessLogger
    extends Object
    This is a logger util class.
    • Constructor Detail

      • FocessLogger

        public FocessLogger()
    • Method Detail

      • info

        public void info​(String message)
        Log a message with INFO level
        Parameters:
        message - the message need to info
      • infoLang

        public void infoLang​(String key,
                             Object... objects)
        Log a message with INFO level
        Parameters:
        key - the language key
        objects - the objects need to replace
      • consoleInput

        public void consoleInput​(String message)
        Log a message inputted by console with DEBUG level
        Parameters:
        message - the message need to reshow
      • thr

        public void thr​(String message,
                        Throwable e)
        Log a message and a throwable (or exception) with ERROR level
        Parameters:
        message - the message need to error
        e - a throwable (or exception) with this message
      • thrLang

        public void thrLang​(String key,
                            Throwable e,
                            Object... objects)
        Log a message and a throwable (or exception) with ERROR level
        Parameters:
        key - the language key
        e - a throwable (or exception) with this message
        objects - the objects need to replace
      • fatal

        public void fatal​(String message)
        Log a message with ERROR level
        Parameters:
        message - the message need to fatal
      • fatalLang

        public void fatalLang​(String key,
                              Object... objects)
        Log a message with ERROR level
        Parameters:
        key - the language key
        objects - the objects need to replace
      • debug

        public void debug​(String message)
        Log a message with DEBUG level
        Parameters:
        message - the message need to debug
      • debugLang

        public void debugLang​(String key,
                              Object... objects)
        Log a message with DEBUG level
        Parameters:
        key - the language key
        objects - the objects need to replace
      • trace

        public void trace​(String message,
                          Throwable e)
        Log a message and a throwable (or exception) with TRACE level
        Parameters:
        message - the message need to trace
        e - a throwable (or exception) with this message
      • toggleDebugOutput

        public void toggleDebugOutput()
        Toggle debug output Note: if debug output is true, the debug message will be outputted as INFO level and DEBUG level, otherwise, it will be outputted as DEBUG level
      • isDebugOutput

        public boolean isDebugOutput()
        Get debug output status
        Returns:
        true if debug output as INFO level and DEBUG level, false otherwise