Package org.javacord.core.util.logging
Class LoggerUtil
- java.lang.Object
-
- org.javacord.core.util.logging.LoggerUtil
-
public class LoggerUtil extends Object
This class is used to get aLogger
instance.
-
-
Constructor Summary
Constructors Constructor Description LoggerUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.logging.log4j.Logger
getLogger(Class clazz)
Gets or creates a logger for the given name.static org.apache.logging.log4j.Logger
getLogger(String name)
Get or create a logger with the given name.
-
-
-
Method Detail
-
getLogger
public static org.apache.logging.log4j.Logger getLogger(String name)
Get or create a logger with the given name.- Parameters:
name
- The name of the logger.- Returns:
- The logger with the given name.
-
getLogger
public static org.apache.logging.log4j.Logger getLogger(Class clazz)
Gets or creates a logger for the given name.- Parameters:
clazz
- The class of the logger.- Returns:
- A logger for the given class.
-
-