|
Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
Generic definitions and tools for logging on ChibiOS or Linux. More...
#include <stdio.h>#include <unistd.h>
Include dependency graph for logger_utils.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | LogWrite fprintf |
| #define | LogFileIsOpen(_file) (_file != NULL) |
| #define | LogOpen(_file, _path, _name) { _file = open_log(_path, _name); } |
| #define | LogClose(_file) |
Typedefs | |
| typedef FILE * | LogFile_t |
Functions | |
| FILE * | open_log (char *path, char *name) |
| Open a log file. | |
Generic definitions and tools for logging on ChibiOS or Linux.
Definition in file logger_utils.h.
Definition at line 45 of file logger_utils.h.
Definition at line 44 of file logger_utils.h.
Definition at line 42 of file logger_utils.h.
Definition at line 49 of file logger_utils.h.
Open a log file.
If the log name already exists, a counter is the file name is automatically incremented.
| path | log directory |
| name | use current time if NULL, specified name otherwise |
Definition at line 34 of file logger_utils.c.