ILogEnabled
, Target
public final class FileTarget extends BaseTarget
Modifier and Type | Class | Description |
---|---|---|
static class |
FileTarget.RollingMode |
Constructor | Description |
---|---|
FileTarget(java.lang.String filename,
VerboseLevel level,
Formatter formatter) |
Modifier and Type | Method | Description |
---|---|---|
void |
applyConfiguration(LogConfiguration configuration,
FileConfiguration fileConfiguration) |
|
void |
dispose() |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
|
protected void |
doActivate() |
|
protected void |
doApplyConfiguration(LogConfiguration configuration) |
|
protected void |
doStop() |
|
protected void |
doWrite(LogEntry entry) |
|
FileHeaderProvider |
getDefaultFileHeaderProvider() |
|
java.lang.String |
getEncoding() |
|
ExpirationConfiguration |
getExpiration() |
|
FileHeaderProvider |
getFileHeaderProvider() |
|
java.lang.String |
getFileName() |
|
boolean |
getFlushWriter() |
|
long |
getMaxFileSize() |
The max file size (in bytes).
|
int |
getTimeRollInterval() |
The time interval for rolling.
|
boolean |
isEnabled() |
|
protected void |
onEnableLogging(ILogger logger) |
Override this method to perform additional logging related actions,
such as passing logger down to hierarchy, etc.
|
void |
setEnabled(boolean value) |
|
void |
setEncoding(java.lang.String encoding) |
|
void |
setExpiration(ExpirationConfiguration value) |
|
void |
setFileHeaderProvider(FileHeaderProvider value) |
|
void |
setFileName(java.lang.String value) |
|
void |
setFlushWriter(boolean value) |
|
void |
setMaxFileSize(int value) |
|
void |
setRollingStyle(FileTarget.RollingMode value) |
|
void |
setTimeRollInterval(int timeRollInterval) |
getLogger
activate, applyConfiguration, enableLogging, getFilter, getFormatter, getVerbose, setFilter, setFormatter, setVerbose, stop, write
public FileTarget(java.lang.String filename, VerboseLevel level, Formatter formatter)
public FileHeaderProvider getDefaultFileHeaderProvider()
public boolean getFlushWriter()
public void setFlushWriter(boolean value) throws LoggerException
LoggerException
public FileHeaderProvider getFileHeaderProvider()
public void setFileHeaderProvider(FileHeaderProvider value) throws LoggerException
LoggerException
public java.lang.String getFileName()
public void setFileName(java.lang.String value) throws LoggerException
LoggerException
public ExpirationConfiguration getExpiration()
public void setExpiration(ExpirationConfiguration value) throws LoggerException
LoggerException
public int getTimeRollInterval()
public void setTimeRollInterval(int timeRollInterval) throws LoggerException
LoggerException
public long getMaxFileSize()
public void setMaxFileSize(int value) throws LoggerException
LoggerException
public void setRollingStyle(FileTarget.RollingMode value) throws LoggerException
LoggerException
public boolean isEnabled()
isEnabled
in class BaseTarget
public void setEnabled(boolean value)
setEnabled
in class BaseTarget
protected void doActivate() throws LoggerException
doActivate
in class BaseTarget
LoggerException
protected void doApplyConfiguration(LogConfiguration configuration)
doApplyConfiguration
in class BaseTarget
public void applyConfiguration(LogConfiguration configuration, FileConfiguration fileConfiguration)
protected void doWrite(LogEntry entry) throws java.lang.Exception
doWrite
in class BaseTarget
java.lang.Exception
protected void doStop()
doStop
in class BaseTarget
protected void onEnableLogging(ILogger logger)
AbstractLogEnabled
onEnableLogging
in class AbstractLogEnabled
logger
- The ILogger instancepublic java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
public void dispose()
Send comments on this topicTechpubs.webadmin@genesys.com.
Document version: 9.0.006.00
Copyright © 2006–2019 Genesys Telecommunications Laboratories, Inc. All rights reserved.