summaryrefslogtreecommitdiffstats
path: root/xbmc/utils/StaticLoggerBase.cpp
diff options
context:
space:
mode:
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}