public class NukkitPluginLogger
extends java.lang.Object
implements com.djrapitops.plugin.logging.console.PluginLogger
PluginLogger
implementation for Nukkit.Modifier and Type | Field and Description |
---|---|
protected java.util.function.Consumer<java.lang.String> |
console |
protected java.util.function.Supplier<com.djrapitops.plugin.logging.debug.DebugLogger> |
debugLogger |
protected java.util.function.Supplier<cn.nukkit.plugin.PluginLogger> |
logger |
Constructor and Description |
---|
NukkitPluginLogger(java.util.function.Consumer<java.lang.String> console,
java.util.function.Supplier<com.djrapitops.plugin.logging.debug.DebugLogger> debugLogger,
cn.nukkit.plugin.PluginLogger logger)
Create a new JavaUtilPluginLogger.
|
NukkitPluginLogger(java.util.function.Consumer<java.lang.String> console,
java.util.function.Supplier<com.djrapitops.plugin.logging.debug.DebugLogger> debugLogger,
java.util.function.Supplier<cn.nukkit.plugin.PluginLogger> logger)
Create a new JavaUtilPluginLogger.
|
Modifier and Type | Method and Description |
---|---|
com.djrapitops.plugin.logging.debug.DebugLogger |
getDebugLogger() |
void |
log(com.djrapitops.plugin.logging.L level,
java.lang.String... message) |
void |
log(com.djrapitops.plugin.logging.L level,
java.lang.String message,
java.lang.Throwable throwable) |
protected final java.util.function.Consumer<java.lang.String> console
protected final java.util.function.Supplier<com.djrapitops.plugin.logging.debug.DebugLogger> debugLogger
protected final java.util.function.Supplier<cn.nukkit.plugin.PluginLogger> logger
public NukkitPluginLogger(java.util.function.Consumer<java.lang.String> console, java.util.function.Supplier<com.djrapitops.plugin.logging.debug.DebugLogger> debugLogger, cn.nukkit.plugin.PluginLogger logger)
console
- Consumer of the logging method for colored messages on the console.debugLogger
- DebugLogger
to log all channels on.logger
- plugin logger for logging messages.public NukkitPluginLogger(java.util.function.Consumer<java.lang.String> console, java.util.function.Supplier<com.djrapitops.plugin.logging.debug.DebugLogger> debugLogger, java.util.function.Supplier<cn.nukkit.plugin.PluginLogger> logger)
console
- Consumer of the logging method for colored messages on the console.debugLogger
- DebugLogger
to log all channels on.logger
- Supplier for plugin logger for logging messages.public void log(com.djrapitops.plugin.logging.L level, java.lang.String... message)
log
in interface com.djrapitops.plugin.logging.console.PluginLogger
public void log(com.djrapitops.plugin.logging.L level, java.lang.String message, java.lang.Throwable throwable)
log
in interface com.djrapitops.plugin.logging.console.PluginLogger
public com.djrapitops.plugin.logging.debug.DebugLogger getDebugLogger()
getDebugLogger
in interface com.djrapitops.plugin.logging.console.PluginLogger