MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
com.mysql.clusterj.core.util.LoggerFactory Interface Reference
Inheritance diagram for com.mysql.clusterj.core.util.LoggerFactory:

Public Member Functions

Logger getInstance (Class<?> cls)
Logger getInstance (String loggerName)
Logger registerLogger (String loggerName)

Detailed Description

Definition at line 20 of file LoggerFactory.java.

Member Function Documentation

Logger com.mysql.clusterj.core.util.LoggerFactory.getInstance ( Class<?>  cls)

Get an instance of the logger. The logger to get is based on the package name of the class. If there is no logger for the package, the parent package name is tried, recursively. If there is no logger for the topmost package name, an exception is thrown.

Parameters
clsthe class for which to get the logger
Returns
the logger for the class
Logger com.mysql.clusterj.core.util.LoggerFactory.getInstance ( String  loggerName)

Get an instance of the logger. The logger is configured based on the name. The logger must already exist.

Parameters
loggerNamethe name of the logger, normally the package name
Returns
the logger

Implemented in com.mysql.clusterj.core.util.JDK14LoggerFactoryImpl.

Logger com.mysql.clusterj.core.util.LoggerFactory.registerLogger ( String  loggerName)

Register an instance of the logger.

Parameters
loggerNamethe name of the logger, normally the package name

Implemented in com.mysql.clusterj.core.util.JDK14LoggerFactoryImpl.


The documentation for this interface was generated from the following file: