org.mariadb.jdbc.internal.logging
Class LoggerFactory
java.lang.Object
org.mariadb.jdbc.internal.logging.LoggerFactory
public class LoggerFactory
- extends Object
Method Summary |
static Logger |
getLogger(Class<?> clazz)
Initialize logger. |
static void |
init(boolean mustLog)
Initialize factory. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NO_LOGGER
public static final Logger NO_LOGGER
hasToLog
public static Boolean hasToLog
loggerClass
public static Class loggerClass
method
public static Method method
LoggerFactory
public LoggerFactory()
init
public static void init(boolean mustLog)
- Initialize factory.
- Parameters:
mustLog
- indicate if must initiate Slf4j log
getLogger
public static Logger getLogger(Class<?> clazz)
- Initialize logger.
- Parameters:
clazz
- initiator class
- Returns:
- logger
Copyright © 2017. All rights reserved.