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
9
class
SystemLogger
{
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
SystemLogger
Definition
system_logger.h:9
SystemLogger::readLogFile
void readLogFile(fs::FS &fs, const char *file)
read log file to console
Definition
system_logger.cpp:65
SystemLogger::getLogLevelString
const char * getLogLevelString(uint8_t log_level)
convert the log level to string
Definition
system_logger.cpp:87
custom_time.h
This file defines functions needed for human readable time conversion for data logging.
file
SerialFlashFile file
Definition
main.cpp:546
n4-flight-software
src
system_logger.h
Generated by
1.12.0