2 * Copyright (C) 2020 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
16 using spdlog_filename_t
= std::wstring
;
18 using spdlog_filename_t
= std::string
;
25 template<typename Mutex
>
33 virtual ~IPlatformLog() = default;
35 static std::unique_ptr
<IPlatformLog
> CreatePlatformLog();
37 virtual spdlog_filename_t
GetLogFilename(const std::string
& filename
) const = 0;
38 virtual void AddSinks(
39 std::shared_ptr
<spdlog::sinks::dist_sink
<std::mutex
>> distributionSink
) const = 0;