Platform SDK Java 8.5 API Reference

com.genesyslab.platform.apptemplate.lmslogger.slf4j
Class Slf4jLmsLoggerFactory

java.lang.Object
  extended by com.genesyslab.platform.apptemplate.lmslogger.LmsLoggerFactory
      extended by com.genesyslab.platform.apptemplate.lmslogger.slf4j.Slf4jLmsLoggerFactory

public class Slf4jLmsLoggerFactory
extends LmsLoggerFactory

SLF4J implementation of abstract LmsLoggerFactory.
This class is not supposed for explicit usage by applications.
The abstract factory LmsLoggerFactory uses it when SLF4J logging target is chosen.

See Also:
LmsLoggerFactory, LmsLoggerFactory.createInstance(LmsMessageConveyor)

Nested Class Summary
static class Slf4jLmsLoggerFactory.Builder
           
 
Nested classes/interfaces inherited from class com.genesyslab.platform.apptemplate.lmslogger.LmsLoggerFactory
LmsLoggerFactory.AbstractFactoryBuilder<F extends LmsLoggerFactory,B extends LmsLoggerFactory.AbstractFactoryBuilder<F,B>>, LmsLoggerFactory.WrappedLogger, LmsLoggerFactory.WrappedLoggerFactory
 
Field Summary
 
Fields inherited from class com.genesyslab.platform.apptemplate.lmslogger.LmsLoggerFactory
LMS_LOGGER_FACTORY_CLASS_PROP
 
Constructor Summary
Slf4jLmsLoggerFactory(LmsMessageConveyor lmsc)
          The factory constructor.
It is not supposed for explicit usage by application.
The abstract factory LmsLoggerFactory calls it when SLF4J logging target is used.
 
Method Summary
 LmsEventLogger getLmsLogger(java.lang.Class<?> clazz)
          Gets an LmsEventLogger instance by class.
 LmsEventLogger getLmsLogger(java.lang.String name)
          Gets an LmsEventLogger instance by name.
static Slf4jLmsLoggerFactory.Builder newBuilder()
           
 
Methods inherited from class com.genesyslab.platform.apptemplate.lmslogger.LmsLoggerFactory
createInstance, getLogger, getLogger, getLoggerFactory, getMessageConveyor, setLoggerFactoryImpl, setLoggerFactoryImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Slf4jLmsLoggerFactory

public Slf4jLmsLoggerFactory(LmsMessageConveyor lmsc)
The factory constructor.
It is not supposed for explicit usage by application.
The abstract factory LmsLoggerFactory calls it when SLF4J logging target is used.

Throws:
java.lang.IllegalArgumentException - if this SLF4J factory is selected, but no SLF4J API available.
See Also:
LmsLoggerFactory
Method Detail

getLmsLogger

public LmsEventLogger getLmsLogger(java.lang.String name)
Description copied from class: LmsLoggerFactory
Gets an LmsEventLogger instance by name.

Specified by:
getLmsLogger in class LmsLoggerFactory
Parameters:
name - the logger name.
Returns:
LmsEventLogger named logger instance.

getLmsLogger

public LmsEventLogger getLmsLogger(java.lang.Class<?> clazz)
Description copied from class: LmsLoggerFactory
Gets an LmsEventLogger instance by class.

Specified by:
getLmsLogger in class LmsLoggerFactory
Parameters:
clazz - class to get the logger for.
Returns:
LmsEventLogger instance named by the class.

newBuilder

public static Slf4jLmsLoggerFactory.Builder newBuilder()

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.