|
ReXGlue SDK
|
#include <rex/logging/logger.h>
Public Member Functions | |
| void | Write (const Message &message) override |
| void | Flush () override |
| const std::filesystem::path & | GetPath () const |
| LogFileSink (std::filesystem::path path, std::ofstream file, LineFormat format) | |
Static Public Member Functions | |
| static Result< std::unique_ptr< LogFileSink > > | Open (const std::filesystem::path &path, LineFormat format) |
Additional Inherited Members | |
| Protected Member Functions inherited from rex::NonCopyable | |
| NonCopyable (const NonCopyable &)=delete | |
| NonCopyable & | operator= (const NonCopyable &)=delete |
A log file with a level letter column (T, V, D, I, W, E, C) after the timestamp.
| rex::log::LogFileSink::LogFileSink | ( | std::filesystem::path | path, |
| std::ofstream | file, | ||
| LineFormat | format ) |
Wraps an open stream. Open is the usual way to build the sink.
| format | What to write around each message. color is ignored. |
|
overridevirtual |
Implements rex::log::ILogSink.
| const std::filesystem::path & rex::log::LogFileSink::GetPath | ( | ) | const |
|
staticnodiscard |
Opens a file for appending.
| path | The file. Missing parent folders are created. |
| format | What to write around each message. color is ignored. |
|
overridevirtual |
Implements rex::log::ILogSink.