From b4d6df902253637f24647d3db2bc3781d69eec1c Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Thu, 20 Feb 2025 22:54:56 +0100 Subject: Initial commit --- src/logger_file.hh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/logger_file.hh (limited to 'src/logger_file.hh') 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 +#include + +#include "logger.hh" + +class LoggerFile : public Logger { + public: + // Can return nullptr, will write reason to fallback. + static std::unique_ptr create(std::filesystem::path const& path, + Logger* fallback); +}; + +#endif // LOGGER_FILE_HH -- cgit v1.2.3-70-g09d2