summaryrefslogtreecommitdiff
path: root/src/logger_file.hh
diff options
context:
space:
mode:
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