diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2025-02-20 22:54:56 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2025-02-20 22:54:56 +0100 |
| commit | b4d6df902253637f24647d3db2bc3781d69eec1c (patch) | |
| tree | d8bf9ac04a270fabdfee1c15628c702471ef8bf5 /src/logger_file.hh | |
| parent | 441cafc7124f633e5abc684e85a11ce3c991f6ae (diff) | |
Diffstat (limited to 'src/logger_file.hh')
| -rw-r--r-- | src/logger_file.hh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/logger_file.hh b/src/logger_file.hh new file mode 100644 index 0000000..131798c --- /dev/null +++ b/src/logger_file.hh @@ -0,0 +1,16 @@ +#ifndef LOGGER_FILE_HH +#define LOGGER_FILE_HH + +#include <memory> +#include <filesystem> + +#include "logger.hh" + +class LoggerFile : public Logger { + public: + // Can return nullptr, will write reason to fallback. + static std::unique_ptr<Logger> create(std::filesystem::path const& path, + Logger* fallback); +}; + +#endif // LOGGER_FILE_HH |
