N4 Flight Software N4
Flight software used for the N4 flight computers
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
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
Definition system_logger.h:15
void readLogFile(fs::FS &fs, const char *file)
read log file to console
Definition system_logger.cpp:73
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
const char * getLogLevelString(uint8_t log_level)
convert the log level to string
Definition system_logger.cpp:95
SerialFlashFile file
Definition main.cpp:749