Platform SDK Java 8.5 API Reference

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

java.lang.Object
  extended by com.genesyslab.platform.commons.log.AbstractLogEnabled
      extended by com.genesyslab.platform.logging.runtime.targets.BaseTarget
All Implemented Interfaces:
ILogEnabled, Target
Direct Known Subclasses:
ConsoleTarget, FileTarget, NullTarget, SpooledNetworkTarget

public abstract class BaseTarget
extends AbstractLogEnabled
implements Target


Constructor Summary
protected BaseTarget(VerboseLevel verbose, Formatter formatter)
           
 
Method Summary
 void activate()
           
 void applyConfiguration(LogConfiguration configuration)
           
protected abstract  void doActivate()
           
protected  void doApplyConfiguration(LogConfiguration configuration)
           
protected abstract  void doStop()
           
protected abstract  void doWrite(LogEntry entry)
           
 void enableLogging(ILogger logger)
          Set the component logger.
 java.lang.String getFilter()
           
 Formatter getFormatter()
           
 VerboseLevel getVerbose()
           
 boolean isEnabled()
           
 void setEnabled(boolean value)
           
 void setFilter(java.lang.String filter)
           
protected  void setFormatter(Formatter formatter)
           
 void setVerbose(VerboseLevel level)
           
 void stop()
          This method is called by Logger to stop target.
 void write(LogEntry entry)
          This method is called by Logger to write the passed entry.
 
Methods inherited from class com.genesyslab.platform.commons.log.AbstractLogEnabled
getLogger, onEnableLogging
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseTarget

protected BaseTarget(VerboseLevel verbose,
                     Formatter formatter)
Method Detail

enableLogging

public void enableLogging(ILogger logger)
Description copied from class: AbstractLogEnabled
Set the component logger.

Specified by:
enableLogging in interface ILogEnabled
Overrides:
enableLogging in class AbstractLogEnabled
Parameters:
logger - The ILogger instance

getFormatter

public Formatter getFormatter()

setFormatter

protected void setFormatter(Formatter formatter)

getVerbose

public VerboseLevel getVerbose()

setVerbose

public void setVerbose(VerboseLevel level)

isEnabled

public boolean isEnabled()

setEnabled

public void setEnabled(boolean value)

getFilter

public java.lang.String getFilter()

setFilter

public void setFilter(java.lang.String filter)

doWrite

protected abstract void doWrite(LogEntry entry)
                         throws java.lang.Exception
Throws:
java.lang.Exception

doStop

protected abstract void doStop()

doActivate

protected abstract void doActivate()
                            throws LoggerException
Throws:
LoggerException

activate

public void activate()
              throws LoggerException
Throws:
LoggerException

doApplyConfiguration

protected void doApplyConfiguration(LogConfiguration configuration)

applyConfiguration

public void applyConfiguration(LogConfiguration configuration)

write

public void write(LogEntry entry)
           throws java.lang.Exception
Description copied from interface: Target
This method is called by Logger to write the passed entry.

Specified by:
write in interface Target
Parameters:
entry - LogEntry to write
Throws:
java.lang.Exception

stop

public void stop()
Description copied from interface: Target
This method is called by Logger to stop target.

Specified by:
stop in interface Target

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.