Class LogFactory

java.lang.Object
org.mybatis.generator.logging.LogFactory

public class LogFactory extends Object
Factory for creating loggers.
Author:
Jeff Butler
  • Field Details

  • Method Details

    • getLog

      public static Log getLog(Class<?> clazz)
    • 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

      public static void setLogFactory(AbstractLogFactory logFactory)