com.liferay.faces.util.logging
Class LoggerFactory
java.lang.Object
com.liferay.faces.util.logging.LoggerFactory
public abstract class LoggerFactory
- extends Object
In order to minimize dependencies, this class provides a layer of abstraction over different logging mechanisms
including Log4J and standard Java SE logging.
- Author:
- Neil Griffin
| 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.
getLoggerImplementation
public abstract Logger getLoggerImplementation(String name)
Copyright © 2019 Liferay, Inc.. All rights reserved.