summaryrefslogtreecommitdiffstats
path: root/xbmc/utils/StaticLoggerBase.cpp
blob: 5bcc06a3c93f528ff7aa6c1565dc9a1ca75c4bf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 *  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.
 */

#include "StaticLoggerBase.h"

#include "ServiceBroker.h"
#include "utils/log.h"

Logger CStaticLoggerBase::s_logger;

CStaticLoggerBase::CStaticLoggerBase(const std::string& loggerName)
{
  if (s_logger == nullptr)
    s_logger = CServiceBroker::GetLogging().GetLogger(loggerName);
}