summaryrefslogtreecommitdiff
path: root/src/logger_file.hh
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-02-20 22:54:56 +0100
committerJoel Klinghed <the_jk@spawned.biz>2025-02-20 22:54:56 +0100
commitb4d6df902253637f24647d3db2bc3781d69eec1c (patch)
treed8bf9ac04a270fabdfee1c15628c702471ef8bf5 /src/logger_file.hh
parent441cafc7124f633e5abc684e85a11ce3c991f6ae (diff)
Initial commitHEADmain
Diffstat (limited to 'src/logger_file.hh')
-rw-r--r--src/logger_file.hh16
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