Platform SDK Java 8.5 API Reference

com.genesyslab.platform.logging.runtime.targets
Class DefaultTargetFactory

java.lang.Object
  extended by com.genesyslab.platform.commons.log.AbstractLogEnabled
      extended by com.genesyslab.platform.logging.runtime.targets.DefaultTargetFactory
All Implemented Interfaces:
ILogEnabled, TargetFactory

public final class DefaultTargetFactory
extends AbstractLogEnabled
implements TargetFactory


Constructor Summary
DefaultTargetFactory(ILogger logger)
           
 
Method Summary
 BaseTarget createConsoleTarget(LogConfiguration configuration)
           
 FileTarget createFileTarget(FileConfiguration fileConfiguration, LogConfiguration globalConfig, FileHeaderProvider headerProvider)
           
 SpooledNetworkTarget createNetworkTarget(LogConfiguration configuration, Protocol networkProtocol)
           
protected  void onEnableLogging(ILogger logger)
          Override this method to perform additional logging related actions, such as passing logger down to hierarchy, etc.
 
Methods inherited from class com.genesyslab.platform.commons.log.AbstractLogEnabled
enableLogging, getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTargetFactory

public DefaultTargetFactory(ILogger logger)
Method Detail

onEnableLogging

protected void onEnableLogging(ILogger logger)
Description copied from class: AbstractLogEnabled
Override this method to perform additional logging related actions, such as passing logger down to hierarchy, etc.

Overrides:
onEnableLogging in class AbstractLogEnabled
Parameters:
logger - The ILogger instance

createConsoleTarget

public BaseTarget createConsoleTarget(LogConfiguration configuration)
                               throws LoggerException
Specified by:
createConsoleTarget in interface TargetFactory
Throws:
LoggerException

createNetworkTarget

public SpooledNetworkTarget createNetworkTarget(LogConfiguration configuration,
                                                Protocol networkProtocol)
                                         throws LoggerException
Specified by:
createNetworkTarget in interface TargetFactory
Throws:
LoggerException

createFileTarget

public FileTarget createFileTarget(FileConfiguration fileConfiguration,
                                   LogConfiguration globalConfig,
                                   FileHeaderProvider headerProvider)
                            throws java.lang.Exception
Specified by:
createFileTarget in interface TargetFactory
Throws:
java.lang.Exception

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.