N4 Flight Software N4
Flight software used for the N4 flight computers
Loading...
Searching...
No Matches
system_logger.h
1#ifndef SYSTEMLOGGER_H
2#define SYSTEMLOGGER_H
3
4#include <Arduino.h>
5#include <FS.h>
6#include <SPIFFS.h>
7#include "custom_time.h"
8
10 public:
11 const char* getLogLevelString(uint8_t log_level);
12 void logToConsole (const uint32_t timestamp, const char* client, uint8_t log_level, const char* msg);
13 void logToFile (fs::FS &fs, uint8_t mode, const char* client, uint8_t log_level, const char* file, const char* msg);
14 void readLogFile(fs::FS &fs, const char* file);
15};
16
17#endif
Definition system_logger.h:9
void readLogFile(fs::FS &fs, const char *file)
read log file to console
Definition system_logger.cpp:65
const char * getLogLevelString(uint8_t log_level)
convert the log level to string
Definition system_logger.cpp:87
This file defines functions needed for human readable time conversion for data logging.
SerialFlashFile file
Definition main.cpp:546