Class used to load data from the configurator.
More...
#include <debug.h>
|
| Logger (const char *new_folder, const char *_dir="/tmp", const char *customName="/stats") |
| Construct a new Logger object. More...
|
|
bool | log (const char *format,...) |
|
const char * | get_fileName () |
|
|
std::string | file_dateTime (const char *custom, char name[80], const char *addOn=NULL) |
| Creates filename name in format customdmy_hm.txt. More...
|
|
void | init (const char *new_folder, const char *_dir=NULL, const char *customName="/stats") |
|
|
char | fileName [60] |
|
FILE * | f =NULL |
|
int | fileCount =0 |
|
Class used to load data from the configurator.
◆ Logger()
Logger::Logger |
( |
const char * |
new_folder, |
|
|
const char * |
_dir = "/tmp" , |
|
|
const char * |
customName = "/stats" |
|
) |
| |
|
inline |
Construct a new Logger object.
- Parameters
-
new_folder | folder where files will be dumped (no / at the end) |
_dir | directory containing new_folder |
customName | file prefix (/ must be at the beginning) |
◆ file_dateTime()
std::string Logger::file_dateTime |
( |
const char * |
custom, |
|
|
char |
name[80], |
|
|
const char * |
addOn = NULL |
|
) |
| |
|
protected |
Creates filename name in format customdmy_hm.txt.
- Parameters
-
custom | custom |
name | empty char array |
◆ log()
bool Logger::log |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
- Parameters
-
format | printf style e.g. "hello%s" |
... | other parameters |
The documentation for this class was generated from the following files: