src/log/LogConsole.cpp
raw| 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 | #include "LogConsole.h" |
| 10 | |
| 11 | #include <iostream> |
| 12 | |
| 13 | using namespace LIBRETRO; |
| 14 | |
| 15 | void CLogConsole::Log(SYS_LOG_LEVEL level, const char* logline) |
| 16 | { |
| 17 | std::unique_lock<std::mutex> lock(m_mutex); |
| 18 | |
| 19 | // TODO: Prepend current date |
| 20 | std::cout << logline << std::endl; |
| 21 | } |