18#if !defined(_LOG4CXX_ROLLING_ROLLING_FILE_APPENDER_SKELETON_H)
19#define _LOG4CXX_ROLLING_ROLLING_FILE_APPENDER_SKELETON_H
51 TriggeringPolicyPtr triggeringPolicy;
56 RollingPolicyPtr rollingPolicy;
134 log4cxx::helpers::WriterPtr
createWriter(log4cxx::helpers::OutputStreamPtr& os);
146#ifdef LOG4CXX_MULTI_PROCESS
151 void setFileLength(
size_t length);
157 void releaseFileLock(apr_file_t* lock_file);
FileAppender appends log events to a file.
Definition: fileappender.h:47
Base class for log4cxx::rolling::RollingFileAppender and log4cxx::RollingFileAppender (analogues of o...
Definition: rollingfileappenderskeleton.h:41
void activateOptions(log4cxx::helpers::Pool &)
bool rollover(log4cxx::helpers::Pool &p)
Implements the usual roll over behaviour.
RollingPolicyPtr getRollingPolicy() const
size_t getFileLength() const
Get byte length of current active log file.
bool rolloverInternal(log4cxx::helpers::Pool &p)
void close()
Close appender.
log4cxx::helpers::WriterPtr createWriter(log4cxx::helpers::OutputStreamPtr &os)
Returns an OutputStreamWriter when passed an OutputStream.
virtual void subAppend(const spi::LoggingEventPtr &event, log4cxx::helpers::Pool &p)
Actual writing occurs here.
void incrementFileLength(size_t increment)
Increments estimated byte length of current active log file.
void setTriggeringPolicy(const TriggeringPolicyPtr &policy)
void setRollingPolicy(const RollingPolicyPtr &policy)
Sets the rolling policy.
TriggeringPolicyPtr getTriggeringPolicy() const
RollingFileAppenderSkeleton()
The default constructor simply calls its parents constructor.
std::shared_ptr< LoggingEvent > LoggingEventPtr
Definition: appender.h:38
Definition: messagehandler.h:23
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:153
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:147
#define DECLARE_LOG4CXX_OBJECT(object)
Definition: object.h:39
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition: object.h:159
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:141