Package ch.njol.skript.log
Class RedirectingLogHandler
java.lang.Object
ch.njol.skript.log.LogHandler
ch.njol.skript.log.RedirectingLogHandler
- All Implemented Interfaces:
OpenCloseable
,Closeable
,AutoCloseable
Redirects the log to a
CommandSender
.-
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
ConstructorDescriptionRedirectingLogHandler(org.bukkit.command.CommandSender recipient, @Nullable String prefix)
-
Method Summary
Modifier and TypeMethodDescriptionint
start()
A convenience method forSkriptLogger.startLogHandler(LogHandler)
.
-
Constructor Details
-
RedirectingLogHandler
-
-
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
-
numErrors
public int numErrors()
-