LiteFX::Logging::RollingFileSink::RollingFileSink¶
Creates a new rolling file sink instance.
Synopsis¶
Declared in <litefx/logging.hpp>
[[dllexport, dllimport]] RollingFileSink(
String const& fileName,
LogLevel level = LogLevel::Info,
String const& pattern = "%+",
bool truncate = false,
int maxFiles = 0);
Parameters¶
| Name | Description |
|---|---|
| fileName | The name of the log file. |
| level | The minimum log level for messages to be saved to the file. |
| pattern | The default format for log messages. |
| truncate | true, if the log messages should be truncated to the contents of the file. false to overwrite existing messages. |
| maxFiles | The maximum number of files to keep. |