com.liferay.faces.util.logging
Class LoggerFactory
java.lang.Object
com.liferay.faces.util.logging.LoggerFactory
public class LoggerFactory
- extends Object
In order to minimize dependencies, this class provides as a layer of abstraction over different logging mechanisms
including Log4J and standard Java SE logging.
- Author:
- Neil Griffin
|
Method Summary |
static Logger |
getLogger(Class<?> clazz)
This method gets a logger from the underlying logging implementation. |
static Logger |
getLogger(String name)
This method gets a logger from the underlying logging implementation. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoggerFactory
public LoggerFactory()
getLogger
public static final Logger getLogger(String name)
- This method gets a logger from the underlying logging implementation. First it tries Log4J, then standard Java SE
logging mechanism. NOTE: In the future, support should be added for detection of Apache Commons-Logging and
SLF4J.
- Parameters:
name - The name associated with the logger.
- Returns:
- The logger associated with the specified name.
getLogger
public static final Logger getLogger(Class<?> clazz)
- This method gets a logger from the underlying logging implementation. First it tries Log4J, then standard Java SE
logging mechanism. NOTE: In the future, support should be added for detection of Apache Commons-Logging and
SLF4J.
- Parameters:
clazz - The class associated with the logger.
- Returns:
- The logger associated with the specified class.
Copyright © 2015 Liferay, Inc.. All rights reserved.