Inherited by DailyRollingFileAppender, RollingFileAppender, and RollingFileAppender.
Public Member Functions | |
RollingFileAppenderSkeleton () | |
The default constructor simply calls its parents constructor. | |
void | activateOptions (log4cxx::helpers::Pool &) |
bool | rollover (log4cxx::helpers::Pool &p) |
Implements the usual roll over behaviour. | |
void | close () |
Close appender. | |
size_t | getFileLength () const |
Get byte length of current active log file. | |
void | incrementFileLength (size_t increment) |
Increments estimated byte length of current active log file. | |
Protected Member Functions | |
virtual void | subAppend (const spi::LoggingEventPtr &event, log4cxx::helpers::Pool &p) |
Actual writing occurs here. | |
RollingPolicyPtr | getRollingPolicy () const |
TriggeringPolicyPtr | getTriggeringPolicy () const |
void | setRollingPolicy (const RollingPolicyPtr &policy) |
Sets the rolling policy. | |
void | setTriggeringPolicy (const TriggeringPolicyPtr &policy) |
log4cxx::helpers::WriterPtr | createWriter (log4cxx::helpers::OutputStreamPtr &os) |
Returns an OutputStreamWriter when passed an OutputStream. |
|
The default constructor simply calls its parents constructor.
|
|
Sets and opens the file where the log output will go. The specified file must be writable. If there was already an opened file, then the previous file is closed first. Reimplemented from FileAppender. Reimplemented in DailyRollingFileAppender, and RollingFileAppender. |
|
Close appender. Waits for any asynchronous file compression actions to be completed. Reimplemented from WriterAppender. |
|
Returns an OutputStreamWriter when passed an OutputStream.
The encoding used will depend on the value of the
Reimplemented from WriterAppender. |
|
Get byte length of current active log file.
|
|
|
|
|
|
Increments estimated byte length of current active log file.
|
|
Implements the usual roll over behaviour.
If
If |
|
Sets the rolling policy. In case the 'policy' argument also implements TriggeringPolicy, then the triggering policy for this appender is automatically set to be the policy argument.
|
|
|
|
Actual writing occurs here.
Reimplemented from WriterAppender. |