Files
MuditaOS/module-utils/log/board/linux/log_linux.cpp
Lefucjusz 8d96f2d354 [MOS-993] Logger bug fixes and optimizations
Fixes and optimizations in logger:

* fixed possible buffer overflow when logging
logs over line buffer size;
* reduced max log line length to 2048;
* moved pubsetbuf before file opening;
* log file stream buffer created once
in logger ctor;
* updatet UTs;
* additional minor cleanup.
2023-05-29 09:38:57 +02:00

20 lines
453 B
C++

// Copyright (c) 2017-2023, Mudita Sp. z.o.o. All rights reserved.
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
#include <Logger.hpp>
#include <iostream>
#include <ticks.hpp>
namespace Log
{
void Logger::logToDevice(const char *, va_list)
{
assert(false && "Not implemented");
}
void Logger::logToDevice(Device, const char *logMsg, size_t)
{
std::cout << logMsg;
}
} // namespace Log