Class AbstractLogHandler

  • All Implemented Interfaces:
    ILogHandler, java.lang.AutoCloseable
    Direct Known Subclasses:
    DefaultFileLogHandler

    public abstract class AbstractLogHandler
    extends java.lang.Object
    implements ILogHandler
    This is a basic abstract implementation of the ILogHandler class. It should help, to create a simple
    • Field Detail

      • formatter

        protected IFormatter formatter
        A formatter with a default initialization value with the DefaultLogFormatter class.
        See Also:
        DefaultLogFormatter
    • Constructor Detail

      • AbstractLogHandler

        public AbstractLogHandler()
      • AbstractLogHandler

        public AbstractLogHandler​(@NotNull
                                  @NotNull IFormatter formatter)
    • Method Detail

      • getFormatter

        @NotNull
        public @NotNull IFormatter getFormatter()
      • setFormatter

        @NotNull
        public @NotNull AbstractLogHandler setFormatter​(@NotNull
                                                        @NotNull IFormatter formatter)
        Set the new formatter
        Returns:
        the current instance of the AbstractLogHandler class
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception