Interface ILogger

  • All Superinterfaces:
    java.lang.AutoCloseable, ILevelable, ILogHandlerProvider<ILogger>
    All Known Implementing Classes:
    DefaultAsyncLogger

    public interface ILogger
    extends ILogHandlerProvider<ILogger>, ILevelable, java.lang.AutoCloseable
    The logger is designed to handle the application and has all the basic capabilities to provide easy-to-use logging A logger can optionally process messages asynchronously. However, it is not an obligation for the implementation
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default ILogger debug​(java.lang.String message)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel DEBUG
      default ILogger debug​(java.lang.String... messages)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel DEBUG
      default ILogger debug​(java.lang.String[] messages, java.lang.Class<?> clazz)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel DEBUG
      default ILogger debug​(java.lang.String[] messages, java.lang.Class<?> clazz, java.lang.Throwable throwable)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel DEBUG
      default ILogger debug​(java.lang.String[] messages, java.lang.Throwable throwable)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel DEBUG
      default ILogger debug​(java.lang.String message, java.lang.Class<?> clazz)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel DEBUG
      default ILogger debug​(java.lang.String message, java.lang.Class<?> clazz, java.lang.Throwable throwable)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel DEBUG
      default ILogger debug​(java.lang.String message, java.lang.Throwable throwable)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel DEBUG
      default ILogger error​(java.lang.String message)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel ERROR
      default ILogger error​(java.lang.String... messages)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel ERROR
      default ILogger error​(java.lang.String[] messages, java.lang.Class<?> clazz)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel ERROR
      default ILogger error​(java.lang.String[] messages, java.lang.Class<?> clazz, java.lang.Throwable throwable)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel ERROR
      default ILogger error​(java.lang.String[] messages, java.lang.Throwable throwable)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel ERROR
      default ILogger error​(java.lang.String message, java.lang.Class<?> clazz)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel ERROR
      default ILogger error​(java.lang.String message, java.lang.Class<?> clazz, java.lang.Throwable throwable)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel ERROR
      default ILogger error​(java.lang.String message, java.lang.Throwable throwable)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel ERROR
      default ILogger fatal​(java.lang.String message)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel FATAL
      default ILogger fatal​(java.lang.String... messages)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel FATAL
      default ILogger fatal​(java.lang.String[] messages, java.lang.Class<?> clazz)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel FATAL
      default ILogger fatal​(java.lang.String[] messages, java.lang.Class<?> clazz, java.lang.Throwable throwable)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel FATAL
      default ILogger fatal​(java.lang.String[] messages, java.lang.Throwable throwable)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel FATAL
      default ILogger fatal​(java.lang.String message, java.lang.Class<?> clazz)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel FATAL
      default ILogger fatal​(java.lang.String message, java.lang.Class<?> clazz, java.lang.Throwable throwable)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel FATAL
      default ILogger fatal​(java.lang.String message, java.lang.Throwable throwable)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel FATAL
      boolean hasAsyncSupport()
      Indicates, that the implementation of the logger has support for asynchronously log handle
      default ILogger info​(java.lang.String message)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel INFO
      default ILogger info​(java.lang.String... messages)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel INFO
      default ILogger info​(java.lang.String[] messages, java.lang.Class<?> clazz)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel INFO
      default ILogger info​(java.lang.String message, java.lang.Class<?> clazz)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel INFO
      ILogger log​(LogEntry logEntry)
      Allows to post one LogEntry object into the logger, which invokes the LogHandlers for this LogEntry instance
      ILogger log​(LogEntry... logEntries)
      Allows to post zero or more LogEntries into the logger, which invokes the LogHandlers for this LogEntry instances
      default ILogger log​(LogLevel level, java.lang.Class<?> clazz, java.lang.String message)
      An wrapper method for the last base method log(LogEntry) This method should be a simply shortcut and bypasses an implementation of a LogEntry object
      default ILogger log​(LogLevel level, java.lang.Class<?> clazz, java.lang.String... messages)
      An wrapper method for the last base method log(LogEntry) This method should be a simply shortcut and bypasses an implementation of a LogEntry object
      default ILogger log​(LogLevel level, java.lang.Class<?> clazz, java.lang.String[] messages, java.lang.Throwable throwable)
      An wrapper method for the last base method log(LogEntry) This method should be a simply shortcut and bypasses an implementation of a LogEntry object
      default ILogger log​(LogLevel level, java.lang.Class<?> clazz, java.lang.String message, java.lang.Throwable throwable)
      An wrapper method for the last base method log(LogEntry) This method should be a simply shortcut and bypasses an implementation of a LogEntry object
      default ILogger log​(LogLevel level, java.lang.String message)
      An wrapper method for the last base method log(LogEntry) This method should be a simply shortcut and bypasses an implementation of a LogEntry object
      default ILogger log​(LogLevel level, java.lang.String... messages)
      An wrapper method for the last base method log(LogEntry) This method should be a simply shortcut and bypasses an implementation of a LogEntry object
      default ILogger log​(LogLevel level, java.lang.String[] messages, java.lang.Throwable throwable)
      An wrapper method for the last base method log(LogEntry) This method should be a simply shortcut and bypasses an implementation of a LogEntry object
      default ILogger log​(LogLevel level, java.lang.String message, java.lang.Throwable throwable)
      An wrapper method for the last base method log(LogEntry) This method should be a simply shortcut and bypasses an implementation of a LogEntry object
      void setLevel​(int level)
      Set the LogLevel notification level.
      default void setLevel​(LogLevel level)
      A shortcut method from setLevel(level.getLevel()) to setLevel(level)
      default ILogger warning​(java.lang.String message)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel WARNING
      default ILogger warning​(java.lang.String... messages)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel WARNING
      default ILogger warning​(java.lang.String[] messages, java.lang.Class<?> clazz)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel WARNING
      default ILogger warning​(java.lang.String[] messages, java.lang.Class<?> clazz, java.lang.Throwable throwable)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel WARNING
      default ILogger warning​(java.lang.String[] messages, java.lang.Throwable throwable)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel WARNING
      default ILogger warning​(java.lang.String message, java.lang.Class<?> clazz)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel WARNING
      default ILogger warning​(java.lang.String message, java.lang.Class<?> clazz, java.lang.Throwable throwable)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel WARNING
      default ILogger warning​(java.lang.String message, java.lang.Throwable throwable)
      An wrapper method for the last base method log(LogEntry) It has the default LogLevel WARNING
      • Methods inherited from interface java.lang.AutoCloseable

        close
    • Method Detail

      • setLevel

        void setLevel​(int level)
        Set the LogLevel notification level. If the level higher or same than the incoming LogLevel.level. The LogEntry is allowed to handle
        Parameters:
        level - the level, that should set
        See Also:
        LogLevel
      • log

        ILogger log​(LogEntry logEntry)
        Allows to post one LogEntry object into the logger, which invokes the LogHandlers for this LogEntry instance
        Parameters:
        logEntry - the entry, that should be handle
        Returns:
        the current logger instance
      • log

        ILogger log​(LogEntry... logEntries)
        Allows to post zero or more LogEntries into the logger, which invokes the LogHandlers for this LogEntry instances
        Parameters:
        logEntries - the entries, that should be handle
        Returns:
        the current logger instance
      • hasAsyncSupport

        boolean hasAsyncSupport()
        Indicates, that the implementation of the logger has support for asynchronously log handle
        Returns:
        true when the implementation has the support or false if the class doesn't has any async features
      • setLevel

        default void setLevel​(LogLevel level)
        A shortcut method from setLevel(level.getLevel()) to setLevel(level)
        Parameters:
        level - the LogLevel instance, from that the level integer value should get
      • log

        default ILogger log​(LogLevel level,
                            java.lang.String message)
        An wrapper method for the last base method log(LogEntry) This method should be a simply shortcut and bypasses an implementation of a LogEntry object
      • log

        default ILogger log​(LogLevel level,
                            java.lang.String... messages)
        An wrapper method for the last base method log(LogEntry) This method should be a simply shortcut and bypasses an implementation of a LogEntry object
        See Also:
        LogEntry, ILogHandler
      • log

        default ILogger log​(LogLevel level,
                            java.lang.Class<?> clazz,
                            java.lang.String message)
        An wrapper method for the last base method log(LogEntry) This method should be a simply shortcut and bypasses an implementation of a LogEntry object
        See Also:
        LogEntry, ILogHandler
      • log

        default ILogger log​(LogLevel level,
                            java.lang.Class<?> clazz,
                            java.lang.String... messages)
        An wrapper method for the last base method log(LogEntry) This method should be a simply shortcut and bypasses an implementation of a LogEntry object
        See Also:
        LogEntry, ILogHandler
      • log

        default ILogger log​(LogLevel level,
                            java.lang.String message,
                            java.lang.Throwable throwable)
        An wrapper method for the last base method log(LogEntry) This method should be a simply shortcut and bypasses an implementation of a LogEntry object
        See Also:
        LogEntry, ILogHandler
      • log

        default ILogger log​(LogLevel level,
                            java.lang.String[] messages,
                            java.lang.Throwable throwable)
        An wrapper method for the last base method log(LogEntry) This method should be a simply shortcut and bypasses an implementation of a LogEntry object
        See Also:
        LogEntry, ILogHandler
      • log

        default ILogger log​(LogLevel level,
                            java.lang.Class<?> clazz,
                            java.lang.String message,
                            java.lang.Throwable throwable)
        An wrapper method for the last base method log(LogEntry) This method should be a simply shortcut and bypasses an implementation of a LogEntry object
        See Also:
        LogEntry, ILogHandler
      • log

        default ILogger log​(LogLevel level,
                            java.lang.Class<?> clazz,
                            java.lang.String[] messages,
                            java.lang.Throwable throwable)
        An wrapper method for the last base method log(LogEntry) This method should be a simply shortcut and bypasses an implementation of a LogEntry object
        See Also:
        LogEntry, ILogHandler
      • info

        default ILogger info​(java.lang.String message)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel INFO

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • info

        default ILogger info​(java.lang.String... messages)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel INFO

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • info

        default ILogger info​(java.lang.String message,
                             java.lang.Class<?> clazz)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel INFO

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • info

        default ILogger info​(java.lang.String[] messages,
                             java.lang.Class<?> clazz)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel INFO

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • warning

        default ILogger warning​(java.lang.String message)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel WARNING

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • warning

        default ILogger warning​(java.lang.String... messages)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel WARNING

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • warning

        default ILogger warning​(java.lang.String message,
                                java.lang.Class<?> clazz)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel WARNING

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • warning

        default ILogger warning​(java.lang.String[] messages,
                                java.lang.Class<?> clazz)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel WARNING

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • warning

        default ILogger warning​(java.lang.String message,
                                java.lang.Throwable throwable)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel WARNING

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • warning

        default ILogger warning​(java.lang.String[] messages,
                                java.lang.Throwable throwable)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel WARNING

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • warning

        default ILogger warning​(java.lang.String message,
                                java.lang.Class<?> clazz,
                                java.lang.Throwable throwable)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel WARNING

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • warning

        default ILogger warning​(java.lang.String[] messages,
                                java.lang.Class<?> clazz,
                                java.lang.Throwable throwable)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel WARNING

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • fatal

        default ILogger fatal​(java.lang.String message)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel FATAL

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • fatal

        default ILogger fatal​(java.lang.String... messages)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel FATAL

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • fatal

        default ILogger fatal​(java.lang.String message,
                              java.lang.Class<?> clazz)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel FATAL

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • fatal

        default ILogger fatal​(java.lang.String[] messages,
                              java.lang.Class<?> clazz)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel FATAL

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • fatal

        default ILogger fatal​(java.lang.String message,
                              java.lang.Throwable throwable)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel FATAL

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • fatal

        default ILogger fatal​(java.lang.String[] messages,
                              java.lang.Throwable throwable)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel FATAL

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • fatal

        default ILogger fatal​(java.lang.String message,
                              java.lang.Class<?> clazz,
                              java.lang.Throwable throwable)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel FATAL

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • fatal

        default ILogger fatal​(java.lang.String[] messages,
                              java.lang.Class<?> clazz,
                              java.lang.Throwable throwable)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel FATAL

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • error

        default ILogger error​(java.lang.String message)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel ERROR

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • error

        default ILogger error​(java.lang.String... messages)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel ERROR

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • error

        default ILogger error​(java.lang.String message,
                              java.lang.Class<?> clazz)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel ERROR

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • error

        default ILogger error​(java.lang.String[] messages,
                              java.lang.Class<?> clazz)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel ERROR

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • error

        default ILogger error​(java.lang.String message,
                              java.lang.Throwable throwable)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel ERROR

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • error

        default ILogger error​(java.lang.String[] messages,
                              java.lang.Throwable throwable)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel ERROR

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • error

        default ILogger error​(java.lang.String message,
                              java.lang.Class<?> clazz,
                              java.lang.Throwable throwable)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel ERROR

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • error

        default ILogger error​(java.lang.String[] messages,
                              java.lang.Class<?> clazz,
                              java.lang.Throwable throwable)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel ERROR

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • debug

        default ILogger debug​(java.lang.String message)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel DEBUG

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • debug

        default ILogger debug​(java.lang.String... messages)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel DEBUG

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • debug

        default ILogger debug​(java.lang.String message,
                              java.lang.Class<?> clazz)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel DEBUG

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • debug

        default ILogger debug​(java.lang.String[] messages,
                              java.lang.Class<?> clazz)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel DEBUG

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • debug

        default ILogger debug​(java.lang.String message,
                              java.lang.Throwable throwable)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel DEBUG

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • debug

        default ILogger debug​(java.lang.String[] messages,
                              java.lang.Throwable throwable)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel DEBUG

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • debug

        default ILogger debug​(java.lang.String message,
                              java.lang.Class<?> clazz,
                              java.lang.Throwable throwable)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel DEBUG

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler
      • debug

        default ILogger debug​(java.lang.String[] messages,
                              java.lang.Class<?> clazz,
                              java.lang.Throwable throwable)
        An wrapper method for the last base method log(LogEntry) It has the default LogLevel DEBUG

        This method should be a simply shortcut and bypasses an implementation of a LogEntry object

        See Also:
        LogEntry, LogLevel, ILogHandler