Package xyz.dynxsty.dih4jda
Class DIH4JDALogger
java.lang.Object
xyz.dynxsty.dih4jda.DIH4JDALogger
This handler's own Logging System.
To disable certain
To disable certain
DIH4JDALogger.Type
s, simple use disableLogging(Type...)
.-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Logs a message with the specifiedLevel.DEBUG
.static void
debug
(DIH4JDALogger.Type type, String msg, Object... args) Logs a message with the specifiedDIH4JDALogger.Type
andLevel.DEBUG
.static void
disableLogging
(DIH4JDALogger.Type... types) Sets the types of logging that should be disabled.static void
Logs a message with the specifiedLevel.ERROR
.static void
error
(DIH4JDALogger.Type type, String msg, Object... args) Logs a message with the specifiedDIH4JDALogger.Type
andLevel.ERROR
.static void
Logs a message with the specifiedLevel.INFO
.static void
info
(DIH4JDALogger.Type type, String msg, Object... args) Logs a message with the specifiedDIH4JDALogger.Type
andLevel.INFO
.static void
Logs a message with the specifiedLevel.TRACE
.static void
trace
(DIH4JDALogger.Type type, String msg, Object... args) Logs a message with the specifiedDIH4JDALogger.Type
andLevel.TRACE
.static void
Logs a message with the specifiedLevel.WARN
.static void
warn
(DIH4JDALogger.Type type, String msg, Object... args) Logs a message with the specifiedDIH4JDALogger.Type
andLevel.WARN
.
-
Constructor Details
-
DIH4JDALogger
public DIH4JDALogger()Creates a new, default instance of theDIH4JDALogger
.
-
-
Method Details
-
disableLogging
Sets the types of logging that should be disabled.- Parameters:
types
- AllDIH4JDALogger.Type
's that should be disabled.
-
info
public static void info(@Nonnull DIH4JDALogger.Type type, @Nonnull String msg, @Nonnull Object... args) Logs a message with the specifiedDIH4JDALogger.Type
andLevel.INFO
.- Parameters:
type
- TheDIH4JDALogger.Type
of the message.msg
- The message to log.args
- The arguments to format the message with.
-
info
Logs a message with the specifiedLevel.INFO
.- Parameters:
msg
- The message to log.args
- The arguments to format the message with.
-
warn
public static void warn(@Nonnull DIH4JDALogger.Type type, @Nonnull String msg, @Nonnull Object... args) Logs a message with the specifiedDIH4JDALogger.Type
andLevel.WARN
.- Parameters:
type
- TheDIH4JDALogger.Type
of the message.msg
- The message to log.args
- The arguments to format the message with.
-
warn
Logs a message with the specifiedLevel.WARN
.- Parameters:
msg
- The message to log.args
- The arguments to format the message with.
-
error
public static void error(@Nonnull DIH4JDALogger.Type type, @Nonnull String msg, @Nonnull Object... args) Logs a message with the specifiedDIH4JDALogger.Type
andLevel.ERROR
.- Parameters:
type
- TheDIH4JDALogger.Type
of the message.msg
- The message to log.args
- The arguments to format the message with.
-
error
Logs a message with the specifiedLevel.ERROR
.- Parameters:
msg
- The message to log.args
- The arguments to format the message with.
-
debug
public static void debug(@Nonnull DIH4JDALogger.Type type, @Nonnull String msg, @Nonnull Object... args) Logs a message with the specifiedDIH4JDALogger.Type
andLevel.DEBUG
.- Parameters:
type
- TheDIH4JDALogger.Type
of the message.msg
- The message to log.args
- The arguments to format the message with.
-
debug
Logs a message with the specifiedLevel.DEBUG
.- Parameters:
msg
- The message to log.args
- The arguments to format the message with.
-
trace
public static void trace(@Nonnull DIH4JDALogger.Type type, @Nonnull String msg, @Nonnull Object... args) Logs a message with the specifiedDIH4JDALogger.Type
andLevel.TRACE
.- Parameters:
type
- TheDIH4JDALogger.Type
of the message.msg
- The message to log.args
- The arguments to format the message with.
-
trace
Logs a message with the specifiedLevel.TRACE
.- Parameters:
msg
- The message to log.args
- The arguments to format the message with.
-