mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-01 02:19:00 -05:00
Due to losing bytes the logger has a worker which is responsible for dumping logs to the file. The logger also has its own timer to dump logs every 15 minutes. EventManager is not responsible for interval dumping logs now.
18 lines
349 B
C++
18 lines
349 B
C++
// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#include <logdump/logdump.h>
|
|
#include <Logger.hpp>
|
|
|
|
using namespace Log;
|
|
|
|
int diagnosticDumpLogs()
|
|
{
|
|
return Logger::get().diagnosticDump();
|
|
}
|
|
|
|
int shutdownFlushLogs()
|
|
{
|
|
return Logger::get().flushLogs();
|
|
}
|