ILogEnabled
, Target
ConsoleTarget
, FileTarget
, NullTarget
, SpooledNetworkTarget
public abstract class BaseTarget extends AbstractLogEnabled implements Target
Modifier | Constructor | Description |
---|---|---|
protected |
BaseTarget(VerboseLevel verbose,
Formatter formatter) |
Modifier and Type | Method | Description |
---|---|---|
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.
|
getLogger, onEnableLogging
protected BaseTarget(VerboseLevel verbose, Formatter formatter)
public void enableLogging(ILogger logger)
AbstractLogEnabled
enableLogging
in interface ILogEnabled
enableLogging
in class AbstractLogEnabled
logger
- The ILogger instancepublic Formatter getFormatter()
protected void setFormatter(Formatter formatter)
public VerboseLevel getVerbose()
public void setVerbose(VerboseLevel level)
public boolean isEnabled()
public void setEnabled(boolean value)
public java.lang.String getFilter()
public void setFilter(java.lang.String filter)
protected abstract void doWrite(LogEntry entry) throws java.lang.Exception
java.lang.Exception
protected abstract void doStop()
protected abstract void doActivate() throws LoggerException
LoggerException
public void activate() throws LoggerException
LoggerException
protected void doApplyConfiguration(LogConfiguration configuration)
public void applyConfiguration(LogConfiguration configuration)
public void write(LogEntry entry) throws java.lang.Exception
Target
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.