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 one or more 
CommandSenders.- 
Nested Class SummaryNested classes/interfaces inherited from class ch.njol.skript.log.LogHandlerLogHandler.LogResult
- 
Field SummaryFields inherited from interface ch.njol.util.OpenCloseableEMPTY
- 
Constructor SummaryConstructorsConstructorDescriptionRedirectingLogHandler(Collection<org.bukkit.command.CommandSender> recipients, @Nullable String prefix) RedirectingLogHandler(org.bukkit.command.CommandSender recipient, @Nullable String prefix) 
- 
Method SummaryModifier and TypeMethodDescriptionintstart()A convenience method forSkriptLogger.startLogHandler(LogHandler).
- 
Constructor Details- 
RedirectingLogHandlerpublic RedirectingLogHandler(org.bukkit.command.CommandSender recipient, @Nullable @Nullable String prefix) 
- 
RedirectingLogHandlerpublic RedirectingLogHandler(Collection<org.bukkit.command.CommandSender> recipients, @Nullable @Nullable String prefix) 
 
- 
- 
Method Details- 
log- Specified by:
- login class- LogHandler
- Parameters:
- entry- entry to log
- Returns:
- Whether to print the specified entry or not.
 
- 
logpublic LogHandler.LogResult log(LogEntry entry, @Nullable @Nullable org.bukkit.command.CommandSender ignore) 
- 
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
 
- 
numErrorspublic int numErrors()
 
-