Class ErrorDescLogHandler

java.lang.Object
ch.njol.skript.log.LogHandler
ch.njol.skript.log.ErrorDescLogHandler
All Implemented Interfaces:
OpenCloseable, Closeable, AutoCloseable

public class ErrorDescLogHandler extends LogHandler
Does nothing but print messages before the first error encountered and/or a message at the end if no error were encountered.
  • Constructor Details

    • ErrorDescLogHandler

      public ErrorDescLogHandler()
    • ErrorDescLogHandler

      public ErrorDescLogHandler(@Nullable String before, @Nullable String after, @Nullable String success)
  • Method Details

    • log

      public LogHandler.LogResult log(LogEntry entry)
      Specified by:
      log in class LogHandler
      Parameters:
      entry - entry to log
      Returns:
      Whether to print the specified entry or not.
    • start

      public ErrorDescLogHandler start()
      Description copied from class: LogHandler
      A convenience method for SkriptLogger.startLogHandler(LogHandler).
      Implementations should override this to set the return type to the implementing class.
      Overrides:
      start in class LogHandler
    • beforeErrors

      protected void beforeErrors()
    • afterErrors

      protected void afterErrors()
    • onSuccess

      protected void onSuccess()
    • onStop

      protected void onStop()
      Description copied from class: LogHandler
      Called just after the handler is removed from the active handlers stack.
      Overrides:
      onStop in class LogHandler