Package ch.njol.skript.log
Class ErrorDescLogHandler
java.lang.Object
ch.njol.skript.log.LogHandler
ch.njol.skript.log.ErrorDescLogHandler
- All Implemented Interfaces:
OpenCloseable
,Closeable
,AutoCloseable
Does nothing but print messages before the first error encountered and/or a message at the end if no error were encountered.
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.njol.skript.log.LogHandler
LogHandler.LogResult
-
Field Summary
Fields inherited from interface ch.njol.util.OpenCloseable
EMPTY
-
Constructor Summary
ConstructorDescriptionErrorDescLogHandler
(@Nullable String before, @Nullable String after, @Nullable String success) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
protected void
onStop()
Called just after the handler is removed from the active handlers stack.protected void
start()
A convenience method forSkriptLogger.startLogHandler(LogHandler)
.Methods inherited from class ch.njol.skript.log.LogHandler
close, isStopped, open, stop
-
Constructor Details
-
ErrorDescLogHandler
public ErrorDescLogHandler() -
ErrorDescLogHandler
-
-
Method Details
-
log
- Specified by:
log
in classLogHandler
- Parameters:
entry
- entry to log- Returns:
- Whether to print the specified entry or not.
-
start
Description copied from class:LogHandler
A convenience method forSkriptLogger.startLogHandler(LogHandler)
.
Implementations should override this to set the return type to the implementing class.- Overrides:
start
in classLogHandler
-
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 classLogHandler
-