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", bool dateOn=true) |
| | 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]) |
| | Creates filename with today's date and time, name in format customdmy_hm.txt. More...
|
| |
| void | init (const char *new_folder, const char *_dir=NULL, const char *customName="/stats", bool dateOn=false) |
| |
|
|
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", |
|
|
bool |
dateOn = true |
|
) |
| |
|
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) |
| dateOn | whether to add today's date and time to file name |
◆ file_dateTime()
| std::string Logger::file_dateTime |
( |
const char * |
custom, |
|
|
char |
name[80] |
|
) |
| |
|
protected |
Creates filename with today's date and time, name in format customdmy_hm.txt.
- Parameters
-
| custom | custom |
| name | empty char array |
◆ init()
| void Logger::init |
( |
const char * |
new_folder, |
|
|
const char * |
_dir = NULL, |
|
|
const char * |
customName = "/stats", |
|
|
bool |
dateOn = false |
|
) |
| |
|
protected |
◆ 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: