Class ParseLogHandler

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

public class ParseLogHandler extends LogHandler
  • Constructor Details

    • ParseLogHandler

      public ParseLogHandler()
  • 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 ParseLogHandler 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
    • error

      public void error(String error, ErrorQuality quality)
    • clear

      public void clear()
      Clears all log messages except for the error
    • clearError

      public void clearError()
    • printLog

      public void printLog()
      Prints the retained log
    • printError

      public void printError()
    • printError

      public void printError(@Nullable String def)
      Prints the best error or the given error if no error has been logged.
      Parameters:
      def - Error to log if no error has been logged so far, can be null
    • printError

      public void printError(String def, ErrorQuality quality)
    • getNumErrors

      public int getNumErrors()
    • hasError

      public boolean hasError()
    • getError

      public @Nullable LogEntry getError()