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.
9 #include "platform/android/utils/AndroidInterfaceForCLog.h"
11 #include "CompileInfo.h"
13 #include <spdlog/sinks/android_sink.h>
14 #include <spdlog/sinks/dist_sink.h>
16 std::unique_ptr
<IPlatformLog
> IPlatformLog::CreatePlatformLog()
18 return std::make_unique
<CAndroidInterfaceForCLog
>();
21 void CAndroidInterfaceForCLog::AddSinks(
22 std::shared_ptr
<spdlog::sinks::dist_sink
<std::mutex
>> distributionSink
) const
24 distributionSink
->add_sink(
25 std::make_shared
<spdlog::sinks::android_sink_st
>(CCompileInfo::GetAppName()));