Constructs a RollingFileAppender object, without opening the destination file
RollingFileAppender( ); RollingFileAppender( ple::simple_shared_ptr<Layout>& layout ); RollingFileAppender( Layout* playout ); RollingFileAppender( const std::basic_string<TCHAR>& file, PeriodTypes period = PERIOD_DAY ); RollingFileAppender( ple::simple_shared_ptr<Layout>& layout, const std::basic_string<TCHAR>& file, PeriodTypes period = PERIOD_DAY ); RollingFileAppender( Layout* playout, const std::basic_string<TCHAR>& file, PeriodTypes period = PERIOD_DAY ); |
A shared pointer to an object descended from Layout.
A pointer to an object descended from Layout. The Layout object (if not null) will now be owned by the RollingFileAppender, and will be deleted when the RollingFileAppender is destroyed.
A complete file name, including path.
The file name should include the character pair %t
. This pair will be replaced by a representation of the time and/or date in the complete log file name.
The path may include environment variables, e.g. %TMP%\MyLogFile.log
.
The desired period for the log file, which must be one of: RollingFileAppender::PERIOD_HOUR, RollingFileAppender::PERIOD_DAY, RollingFileAppender::PERIOD_MONTH.
Header: cpplog.h