Package ch.njol.skript.log
Class ParseLogHandler
java.lang.Object
ch.njol.skript.log.LogHandler
ch.njol.skript.log.ParseLogHandler
- All Implemented Interfaces:
- OpenCloseable,- Closeable,- AutoCloseable
- 
Nested Class SummaryNested classes/interfaces inherited from class ch.njol.skript.log.LogHandlerLogHandler.LogResult
- 
Field SummaryFields inherited from interface ch.njol.util.OpenCloseableEMPTY
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclear()Clears all log messages except for the errorvoidvoiderror(String error, ErrorQuality quality)@Nullable LogEntrygetError()intbooleanhasError()voidvoidprintError(@Nullable String def)Prints the best error or the given error if no error has been logged.voidprintError(String def, ErrorQuality quality)voidprintLog()Prints the retained logstart()A convenience method forSkriptLogger.startLogHandler(LogHandler).
- 
Constructor Details- 
ParseLogHandlerpublic ParseLogHandler()
 
- 
- 
Method Details- 
log- Specified by:
- login class- LogHandler
- Parameters:
- entry- entry to log
- Returns:
- Whether to print the specified entry or not.
 
- 
startDescription copied from class:LogHandlerA convenience method forSkriptLogger.startLogHandler(LogHandler).
 Implementations should override this to set the return type to the implementing class.- Overrides:
- startin class- LogHandler
 
- 
error
- 
clearpublic void clear()Clears all log messages except for the error
- 
clearErrorpublic void clearError()
- 
printLogpublic void printLog()Prints the retained log
- 
printErrorpublic void printError()
- 
printErrorPrints 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
- 
getNumErrorspublic int getNumErrors()
- 
hasErrorpublic boolean hasError()
- 
getError
 
-