summaryrefslogtreecommitdiffstats
path: root/xbmc/utils/StaticLoggerBase.cpp
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2020-10-19 00:52:24 +0200
committermanuel <manuel@mausz.at>2020-10-19 00:52:24 +0200
commitbe933ef2241d79558f91796cc5b3a161f72ebf9c (patch)
treefe3ab2f130e20c99001f2d7a81d610c78c96a3f4 /xbmc/utils/StaticLoggerBase.cpp
parent5f8335c1e49ce108ef3481863833c98efa00411b (diff)
downloadkodi-pvr-build-be933ef2241d79558f91796cc5b3a161f72ebf9c.tar.gz
kodi-pvr-build-be933ef2241d79558f91796cc5b3a161f72ebf9c.tar.bz2
kodi-pvr-build-be933ef2241d79558f91796cc5b3a161f72ebf9c.zip
sync with upstream
Diffstat (limited to 'xbmc/utils/StaticLoggerBase.cpp')
-rw-r--r--xbmc/utils/StaticLoggerBase.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/xbmc/utils/StaticLoggerBase.cpp b/xbmc/utils/StaticLoggerBase.cpp
new file mode 100644
index 0000000..5bcc06a
--- /dev/null
+++ b/xbmc/utils/StaticLoggerBase.cpp
@@ -0,0 +1,20 @@
1/*
2 * Copyright (C) 2020 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
8
9#include "StaticLoggerBase.h"
10
11#include "ServiceBroker.h"
12#include "utils/log.h"
13
14Logger CStaticLoggerBase::s_logger;
15
16CStaticLoggerBase::CStaticLoggerBase(const std::string& loggerName)
17{
18 if (s_logger == nullptr)
19 s_logger = CServiceBroker::GetLogging().GetLogger(loggerName);
20}