Package org.mybatis.generator.logging
Class LogFactory
java.lang.Object
org.mybatis.generator.logging.LogFactory
Factory for creating loggers.
- Author:
- Jeff Butler
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
This method will switch the logging implementation to Java native logging.static void
static void
static void
static Log
static void
setLogFactory
(AbstractLogFactory logFactory)
-
Field Details
-
MARKER
- See Also:
-
-
Method Details
-
getLog
-
forceJavaLogging
public static void forceJavaLogging()This method will switch the logging implementation to Java native logging. This is useful in situations where you want to use Java native logging to log activity but Log4J is on the classpath. Note that this method is only effective for log classes obtained after calling this method. If you intend to use this method you should call it before calling any other method. -
forceSlf4jLogging
public static void forceSlf4jLogging() -
forceCommonsLogging
public static void forceCommonsLogging() -
forceLog4j2Logging
public static void forceLog4j2Logging() -
forceNoLogging
public static void forceNoLogging() -
setLogFactory
-