|
LeviLamina
|
#include <FileSink.h>
Public Member Functions | |
| LLAPI | FileSink (std::filesystem::path const &path, Polymorphic< Formatter > formatter, RotatePolicy policy=RotatePolicy::disabled()) |
| LLAPI void | setFormatter (Polymorphic< Formatter > fmter) override |
| LLAPI void | append (LogMessageView const &view) override |
| LLAPI void | flush () override |
| LLAPI void | setFlushLevel (LogLevel level) override |
| LLAPI void | setPolicy (RotatePolicy policy) |
| LLAPI void | rotate () |
Protected Attributes | |
| Polymorphic< Formatter > | formatter |
A sink that writes to a file, optionally rotating it by size and by date.
|
overridevirtual |
Implements ll::io::SinkBase.
|
overridevirtual |
Implements ll::io::SinkBase.
|
overridevirtual |
Reimplemented from ll::io::SinkBase.
|
overridevirtual |
Reimplemented from ll::io::SinkBase.
| LLAPI void ll::io::FileSink::setPolicy | ( | RotatePolicy | policy | ) |
Replaces the rotation policy.
| LLAPI void ll::io::FileSink::rotate | ( | ) |
Rotates now, regardless of what the policy would decide. Does nothing when the active file is empty.