public class ModuleLogger extends Object implements cn.nukkit.utils.Logger
| Modifier and Type | Field and Description |
|---|---|
private ModuleBase |
module |
private cn.nukkit.plugin.Plugin |
parent |
private String |
prefix |
| Constructor and Description |
|---|
ModuleLogger(@NonNull ModuleBase module,
@NonNull cn.nukkit.plugin.Plugin parentPlugin) |
| Modifier and Type | Method and Description |
|---|---|
void |
alert(String s) |
void |
alert(String s,
Throwable throwable) |
void |
critical(String s) |
void |
critical(String s,
Throwable throwable) |
void |
debug(String s) |
void |
debug(String s,
Throwable throwable) |
void |
emergency(String s) |
void |
emergency(String s,
Throwable throwable) |
void |
error(String s) |
void |
error(String s,
Throwable throwable) |
ModuleBase |
getModule() |
void |
info(String s) |
void |
info(String s,
Throwable throwable) |
void |
log(cn.nukkit.utils.LogLevel logLevel,
String s) |
void |
log(cn.nukkit.utils.LogLevel logLevel,
String s,
Throwable throwable) |
void |
notice(String s) |
void |
notice(String s,
Throwable throwable) |
void |
warning(String s) |
void |
warning(String s,
Throwable throwable) |
private final ModuleBase module
private final String prefix
private final cn.nukkit.plugin.Plugin parent
public ModuleLogger(@NonNull
@NonNull ModuleBase module,
@NonNull
@NonNull cn.nukkit.plugin.Plugin parentPlugin)
public ModuleBase getModule()
public void emergency(String s)
emergency in interface cn.nukkit.utils.Loggerpublic void alert(String s)
alert in interface cn.nukkit.utils.Loggerpublic void critical(String s)
critical in interface cn.nukkit.utils.Loggerpublic void error(String s)
error in interface cn.nukkit.utils.Loggerpublic void warning(String s)
warning in interface cn.nukkit.utils.Loggerpublic void notice(String s)
notice in interface cn.nukkit.utils.Loggerpublic void info(String s)
info in interface cn.nukkit.utils.Loggerpublic void debug(String s)
debug in interface cn.nukkit.utils.Loggerpublic void log(cn.nukkit.utils.LogLevel logLevel,
String s)
log in interface cn.nukkit.utils.Loggerpublic void emergency(String s, Throwable throwable)
emergency in interface cn.nukkit.utils.Loggerpublic void alert(String s, Throwable throwable)
alert in interface cn.nukkit.utils.Loggerpublic void critical(String s, Throwable throwable)
critical in interface cn.nukkit.utils.Loggerpublic void error(String s, Throwable throwable)
error in interface cn.nukkit.utils.Loggerpublic void warning(String s, Throwable throwable)
warning in interface cn.nukkit.utils.Loggerpublic void notice(String s, Throwable throwable)
notice in interface cn.nukkit.utils.Loggerpublic void info(String s, Throwable throwable)
info in interface cn.nukkit.utils.Loggerpublic void debug(String s, Throwable throwable)
debug in interface cn.nukkit.utils.LoggerCopyright © 2022. All rights reserved.