Platform SDK Java 8.5 API Reference

com.genesyslab.platform.logging
Class LoggerFactory

java.lang.Object
  extended by com.genesyslab.platform.logging.LoggerFactory
All Implemented Interfaces:
ILoggerFactory

public final class LoggerFactory
extends java.lang.Object
implements ILoggerFactory

The main class which is used to create logger instances.

Author:
Mike Moroz

Constructor Summary
LoggerFactory()
          Default constructor.
LoggerFactory(java.lang.String root)
          Constructor that creates root logger instance with specified name.
 
Method Summary
 ILogger getLogger(java.lang.Class cls)
          Creates child logger for specified class
 ILogger getLogger(java.lang.String name)
          Creates child logger with specified name
 RootLogger getRootLogger()
          Gets instance of root logger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggerFactory

public LoggerFactory()
              throws LoggerException
Default constructor. Creates root logger instance with empty name.

Throws:
LoggerException

LoggerFactory

public LoggerFactory(java.lang.String root)
              throws LoggerException
Constructor that creates root logger instance with specified name.

Parameters:
root - the name of the root logger
Throws:
LoggerException
Method Detail

getRootLogger

public RootLogger getRootLogger()
Gets instance of root logger

Returns:
instance of root logger

getLogger

public ILogger getLogger(java.lang.String name)
Creates child logger with specified name

Specified by:
getLogger in interface ILoggerFactory

getLogger

public ILogger getLogger(java.lang.Class cls)
Creates child logger for specified class

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.