Configuration Platform SDK 7.6 API Reference

com.genesyslab.platform.commons.log
Class Log

java.lang.Object
  extended bycom.genesyslab.platform.commons.log.Log

public final class Log
extends java.lang.Object


Method Summary
static ILogger getLogger(java.lang.Class clazz)
          Return logger.
static ILogger getLogger(java.lang.String name)
          Return logger.
static void setLoggerFactory(ILoggerFactory factory)
          Set logger system implemntation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLogger

public static ILogger getLogger(java.lang.String name)
Return logger. By default this method returns "silent" logger. It will always return "false" from isXXX() methods and perform no action in logging methods. To choose another implementation of logging system use setLoggerFactory method or "com.genesyslab.platform.commons.log.loggerFactory" system property. It have to contain name of the class which implement com.genesyslab.platform.commons.log.ILoggerFactory interface. One such implementation is com.genesyslab.platform.commons.log.Log4JLoggerFactoryImpl.

Parameters:
name - name of the logger
Returns:
logger for the given name

getLogger

public static ILogger getLogger(java.lang.Class clazz)
Return logger. By default this method returns "silent" logger. It will always return "false" from isXXX() methods and perform no action in logging methods. To choose another implementation of logging system use setLoggerFactory method or "com.genesyslab.platform.commons.log.loggerFactory" system property. It have to contain name of the class which implement com.genesyslab.platform.commons.log.ILoggerFactory interface. One such implementation is com.genesyslab.platform.commons.log.Log4JLoggerFactoryImpl.

Parameters:
clazz - class to create name of the logger from
Returns:
logger for the given class

setLoggerFactory

public static void setLoggerFactory(ILoggerFactory factory)
Set logger system implemntation.

Parameters:
factory - factory that creates loggers

Configuration Platform SDK 7.6 API Reference

Send comments on this topic.
Copyright © 2006–2008 Genesys Telecommunication Laboratories, Inc. All rights reserved.