Platform SDK Java 8.5 API Reference

com.genesyslab.platform.commons.log
Class Log4J2LoggerFactoryImpl

java.lang.Object
  extended by com.genesyslab.platform.commons.log.Log4J2LoggerFactoryImpl
All Implemented Interfaces:
ILoggerFactory

public class Log4J2LoggerFactoryImpl
extends java.lang.Object
implements ILoggerFactory

Platform SDK Commons Logger Factory implementation to send PSDK internal logs to Log4j v2 logging system (LogManager).


Constructor Summary
Log4J2LoggerFactoryImpl()
          Creates instance of PSDK Commons Loggers factory as adapter for Log4j v2.x logging framework.
 
Method Summary
 ILogger getLogger(java.lang.Class clazz)
           
 ILogger getLogger(java.lang.String name)
           
static org.apache.logging.log4j.spi.LoggerContext getLoggerContext()
          Returns Platform SDK common Log4j LoggerContext.
static boolean isAvailable()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log4J2LoggerFactoryImpl

public Log4J2LoggerFactoryImpl()
Creates instance of PSDK Commons Loggers factory as adapter for Log4j v2.x logging framework.

Throws:
java.lang.IllegalStateException - if Log4J 2.x API is not available
Method Detail

isAvailable

@Deprecated
public static boolean isAvailable()
Deprecated. 

Checks availability of Log4j v2.x logging framework in the classpath.

Returns:
true if Log4j2 framework is accessible, and false if it is not.
See Also:
Log4J2Checker.isAvailable()

getLoggerContext

public static org.apache.logging.log4j.spi.LoggerContext getLoggerContext()
Returns Platform SDK common Log4j LoggerContext.

Returns:
PSDK common LoggerContext.

getLogger

public ILogger getLogger(java.lang.String name)
Specified by:
getLogger in interface ILoggerFactory

getLogger

public ILogger getLogger(java.lang.Class clazz)
Specified by:
getLogger in interface ILoggerFactory

Platform SDK Java 8.5 API Reference

Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.