summaryrefslogtreecommitdiffstats
path: root/xbmc/platform/posix/utils/PosixInterfaceForCLog.h
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/platform/posix/utils/PosixInterfaceForCLog.h')
-rw-r--r--xbmc/platform/posix/utils/PosixInterfaceForCLog.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/xbmc/platform/posix/utils/PosixInterfaceForCLog.h b/xbmc/platform/posix/utils/PosixInterfaceForCLog.h
new file mode 100644
index 0000000..0336b16
--- /dev/null
+++ b/xbmc/platform/posix/utils/PosixInterfaceForCLog.h
@@ -0,0 +1,22 @@
+/*
+ * Copyright (C) 2020 Team Kodi
+ * This file is part of Kodi - https://kodi.tv
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ * See LICENSES/README.md for more information.
+ */
+
+#pragma once
+
+#include "utils/IPlatformLog.h"
+
+class CPosixInterfaceForCLog : public IPlatformLog
+{
+public:
+ CPosixInterfaceForCLog() = default;
+ virtual ~CPosixInterfaceForCLog() override = default;
+
+ spdlog_filename_t GetLogFilename(const std::string& filename) const override { return filename; }
+ void AddSinks(
+ std::shared_ptr<spdlog::sinks::dist_sink<std::mutex>> distributionSink) const override;
+};