Class Logger


  • public class Logger
    extends java.lang.Object
    Simple logging support for the framework. You need to add a logging listener that needs to send the logging events to a backend.
    • Constructor Summary

      Constructors 
      Constructor Description
      Logger()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Logger.LogBackEnd getBackend()
      Gets the currently attached logging backend.
      static void log​(java.lang.Class<?> clazz, Logger.LogLevel loglevel, java.lang.String msg, java.lang.Object... params)
      Logs a message.
      static void setBackend​(Logger.LogBackEnd backend)
      Attaches a new logging backend replacing the existing one.
      • Methods inherited from class java.lang.Object

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

      • Logger

        public Logger()
    • Method Detail

      • getBackend

        public static Logger.LogBackEnd getBackend()
        Gets the currently attached logging backend.
        Returns:
        Returns the backend.
      • setBackend

        public static void setBackend​(Logger.LogBackEnd backend)
        Attaches a new logging backend replacing the existing one.
        Parameters:
        backend - The backend to set.
      • log

        public static void log​(java.lang.Class<?> clazz,
                               Logger.LogLevel loglevel,
                               java.lang.String msg,
                               java.lang.Object... params)
        Logs a message.
        Parameters:
        clazz - the class that sends the log message.
        loglevel - the logging level.
        msg - the message format string.
        params - the message parameters for the format string.