com.genesyslab.platform.logging.runtime.targets
Class BaseTarget
java.lang.Object
com.genesyslab.platform.commons.log.AbstractLogEnabled
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseTarget
protected BaseTarget(VerboseLevel verbose,
Formatter formatter)
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
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 8.5.302.00
Copyright © 2006–2017 Genesys Telecommunications Laboratories, Inc. All rights reserved.