Platform SDK Java 8.5 API Reference

com.genesyslab.platform.logging.configuration
Class LogConfigurationFactory

java.lang.Object
  extended by com.genesyslab.platform.logging.configuration.LogConfigurationFactory

public final class LogConfigurationFactory
extends java.lang.Object


Method Summary
static LogConfigurationImpl parse(org.w3c.dom.Element xmlCfgApplication, ILogger logger)
          Parses log options from given application configuration.
static LogConfigurationImpl parse(KeyValueCollection logOptions, ILogger logger)
          Parses given application log options.
static LogConfigurationImpl parse(KeyValueCollection logOptions, KeyValueCollection logExtOptions, ILogger logger)
          Parses given application log options with extended log section.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parse

public static LogConfigurationImpl parse(KeyValueCollection logOptions,
                                         ILogger logger)
Parses given application log options.

Parameters:
logOptions - content of 'log' section of the application options to parse.
logger - logger instance for possible errors or warnings reporting. May be null.
Returns:
the result LogConfiguration.
Throws:
java.lang.IllegalArgumentException - if "logOptions" is null.

parse

public static LogConfigurationImpl parse(KeyValueCollection logOptions,
                                         KeyValueCollection logExtOptions,
                                         ILogger logger)
Parses given application log options with extended log section.

Parameters:
logOptions - Content of 'log' section of the application options to parse.
logExtOptions - Content of 'log-extended' section of the application options to parse.
logger - logger instance for possible errors or warnings reporting. May be null.
Returns:
the result LogConfiguration.
Throws:
java.lang.IllegalArgumentException - if "logOptions" is null.

parse

public static LogConfigurationImpl parse(org.w3c.dom.Element xmlCfgApplication,
                                         ILogger logger)
                                  throws LoggerException
Parses log options from given application configuration.

Parameters:
xmlCfgApplication - "CfgApplication" DOM tree representing application configuration in accordance to the configuration server schema.
logger - logger instance for possible errors or warnings reporting. May be null.
Returns:
the result LogConfiguration.
Throws:
LoggerException - if there is something wrong with structure of "xmlCfgApplication". See exception message for details.
java.lang.NullPointerException - if given application configuration ("xmlCfgApplication") is null.

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.