public class

LogFactory

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

Class Overview

Factory for creating loggers. Uses runtime introspection to determine the AbstractLogFactory implementation.

Summary

Public Constructors
LogFactory()
Public Methods
synchronized static void forceJavaLogging()
This method will switch the logging implementation to Java native logging.
static Log getLog(Class<?> clazz)
static void setLogFactory(AbstractLogFactory logFactory)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public LogFactory ()

Public Methods

public static synchronized 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.

public static Log getLog (Class<?> clazz)

public static void setLogFactory (AbstractLogFactory logFactory)