|
Apache Log4cxx
Version 1.5.0
|
Go to the documentation of this file.
18 #if !defined(_LOG4CXX_ROLLING_ROLLING_FILE_APPENDER_H)
19 #define _LOG4CXX_ROLLING_ROLLING_FILE_APPENDER_H
84 struct RollingFileAppenderPriv;
std::basic_string< logchar > LogString
Definition: logstring.h:60
LOG4CXX_PTR_DEF(RollingFileAppender)
size_t getMaximumFileSize() const
Get the maximum size that the output file is allowed to reach before being rolled over to backup file...
bool rollover(log4cxx::helpers::Pool &p)
Implements the configured roll over behaviour.
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:146
#define DECLARE_LOG4CXX_OBJECT(object)
Definition: object.h:43
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:152
int getMaxBackupIndex() const
Returns the value of the MaxBackupIndex option.
void setOption(const LogString &option, const LogString &value) override
Set option to value.
void close() override
Close appender.
void setMaxBackupIndex(int maxBackupIndex)
Set the maximum number of backup files to keep around.
std::shared_ptr< LoggingEvent > LoggingEventPtr
Definition: appender.h:31
LogString makeFileNamePattern(const LogString &datePattern)
void setMaxFileSize(const LogString &value)
Set the maximum size that the output file is allowed to reach before being rolled over to backup file...
RollingPolicyPtr getRollingPolicy() const
The policy that implements the scheme for rolling over a log file.
bool rolloverInternal(log4cxx::helpers::Pool &p)
void setDatePattern(const LogString &pattern)
The DatePattern takes a string in the same format as expected by SimpleDateFormat.
TriggeringPolicyPtr getTriggeringPolicy() const
The policy that determine when to trigger a log file rollover.
void incrementFileLength(size_t increment)
Increments estimated byte length of current active log file.
RollingFileAppender(std::unique_ptr< RollingFileAppenderPriv > priv)
RollingFileAppender extends log4cxx::FileAppender to backup the log files depending on RollingPolicy ...
Definition: rollingfileappender.h:77
void setRollingPolicy(const RollingPolicyPtr &policy)
Use policy as the scheme for rolling over log files.
void subAppend(const spi::LoggingEventPtr &event, helpers::Pool &p) override
Actual writing occurs here.
#define LOG4CXX_16_CONST
Definition: outputstreamwriter.h:28
#define LOG4CXX_CAST_ENTRY_CHAIN(Interface)
Definition: object.h:164
void activateOptions(helpers::Pool &pool) override
Activate the options that were previously set with calls to option setters.
size_t getFileLength() const
Get byte length of current active log file.
void setMaximumFileSize(size_t value)
void setTriggeringPolicy(const TriggeringPolicyPtr &policy)
Use policy to determine when to trigger a log file rollover.
helpers::WriterPtr createWriter(LOG4CXX_16_CONST helpers::OutputStreamPtr &os) override
Returns an OutputStreamWriter when passed an OutputStream.
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:158
FileAppender appends log events to a file.
Definition: fileappender.h:45