Engine → Core → log.h
file_log_sink
Syntax
class CONJURE_API file_log_sink final : public log_sink
Inheritance Hierarchy
log_sink → file_log_sink
Constructors
| Access | Signature | Description |
| public | explicit file_log_sink(
const std::filesystem::path &path,
bool truncate = true); | |
Destructors
| Access | Signature | Description |
| public | ~file_log_sink() override; | |
Variables
| Access | Name | Type | Default | Description |
| private | mState | std::unique_ptr<state> | {} | |
Functions
Public
flush
is_open
[[nodiscard]] bool is_open() const noexcept;
False when the file could not be opened; messages are then dropped silently.
write