| 1 |
/* |
| 2 |
* Copyright (C) 2014-2021 Team Kodi (https://kodi.tv) |
| 3 |
* Portions Copyright (C) 2013-2014 Lars Op den Kamp |
| 4 |
* |
| 5 |
* SPDX-License-Identifier: GPL-2.0-or-later |
| 6 |
* See LICENSE.md for more information. |
| 7 |
*/ |
| 8 |
|
| 9 |
#pragma once |
| 10 |
|
| 11 |
#include "ILog.h" |
| 12 |
|
| 13 |
#include <mutex> |
| 14 |
|
| 15 |
namespace LIBRETRO |
| 16 |
{ |
| 17 |
class CLogConsole : public ILog |
| 18 |
{ |
| 19 |
public: |
| 20 |
virtual ~CLogConsole(void) { } |
| 21 |
|
| 22 |
// implementation of ILog |
| 23 |
virtual void Log(SYS_LOG_LEVEL level, const char* logline); |
| 24 |
virtual SYS_LOG_TYPE Type(void) const { return SYS_LOG_TYPE_CONSOLE; } |
| 25 |
|
| 26 |
private: |
| 27 |
std::mutex m_mutex; |
| 28 |
}; |
| 29 |
} |