N4 Flight Software
N4
Flight software used for the N4 flight computers
Toggle main menu visibility
Loading...
Searching...
No Matches
system_logger.h
Go to the documentation of this file.
1
6
7
#ifndef SYSTEMLOGGER_H
8
#define SYSTEMLOGGER_H
9
10
#include <Arduino.h>
11
#include <FS.h>
12
#include <SPIFFS.h>
13
#include "
system_log_levels.h
"
14
15
class
SystemLogger
{
16
public
:
17
const
char
*
getLogLevelString
(uint8_t log_level);
18
void
logToConsole (
const
uint32_t timestamp,
const
char
* client, uint8_t log_level,
const
char
* msg);
19
void
logToFile
(fs::FS &fs, uint8_t mode,
const
char
* client, uint8_t log_level,
const
char
*
file
,
const
char
* msg);
20
void
readLogFile
(fs::FS &fs,
const
char
*
file
);
21
};
22
23
#endif
SystemLogger
Definition
system_logger.h:15
SystemLogger::readLogFile
void readLogFile(fs::FS &fs, const char *file)
read log file to console
Definition
system_logger.cpp:73
SystemLogger::logToFile
void logToFile(fs::FS &fs, uint8_t mode, const char *client, uint8_t log_level, const char *file, const char *msg)
write event logs to file
Definition
system_logger.cpp:13
SystemLogger::getLogLevelString
const char * getLogLevelString(uint8_t log_level)
convert the log level to string
Definition
system_logger.cpp:95
file
SerialFlashFile file
Definition
main.cpp:144
system_log_levels.h
n4-flight-software
src
system_logger.h
Generated by
1.17.0