mirror of
https://github.com/mudita/MuditaOS.git
synced 2026-01-20 20:10:33 -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.
19 lines
424 B
C
19 lines
424 B
C
// Copyright (c) 2017-2022, Mudita Sp. z.o.o. All rights reserved.
|
|
// For licensing, see https://github.com/mudita/MuditaOS/LICENSE.md
|
|
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
/// @return: < 0 - error occurred during log flush
|
|
/// @return: 0 - log flush did not happen
|
|
/// @return: 1 - log flush successful
|
|
int diagnosticDumpLogs();
|
|
int shutdownFlushLogs();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|