public class IfsFileHandler extends IfsFileRotationHandler
IfsFileRotationHandler
IfsFileRotationHandler.MeteredStream
m_CurrentLogFile
Constructor and Description |
---|
IfsFileHandler(String logFilePath,
int fileSizeLimit,
int maxFiles,
long rotationMillis)
Constructs a IfsFileHandler for logging.
|
Modifier and Type | Method and Description |
---|---|
protected void |
open(File logFile)
Open the specified file, creating it if it does not exist.
|
buildMeteredStream, checkFileRotation, publish, setupRotationLogging, startTimeBasedRotation
close, flush, isLoggable, setEncoding, setOutputStream
getEncoding, getErrorManager, getFilter, getFormatter, getLevel, reportError, setErrorManager, setFilter, setFormatter, setLevel
public IfsFileHandler(String logFilePath, int fileSizeLimit, int maxFiles, long rotationMillis) throws IOException
logFilePath
- a String containing a path to the log file.fileSizeLimit
- an int that contains the maximum file size
in bytes for a log file. 0 = no limit.maxFiles
- an in containing the number of log files
to rotate though. 1 = no rotation.rotationMillis
- a long containing how often to rotate
the log files in millis.IOException
- if the operation failsprotected void open(File logFile) throws IOException
open
in class IfsFileRotationHandler
logFile
- the File to open.IOException
- if the operation failsCopyright © 2023. All rights reserved.