XLL+ Class Library (7.0)

RollingFileAppender::RollingFileAppender

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
);

Parameters

layout

A shared pointer to an object descended from Layout.

playout

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.

file

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.

period

The desired period for the log file, which must be one of: RollingFileAppender::PERIOD_HOUR, RollingFileAppender::PERIOD_DAY, RollingFileAppender::PERIOD_MONTH.

Requirements

Header: cpplog.h

See Also

RollingFileAppender Class | RollingFileAppender Methods