Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
logger_utils.c File Reference

Generic definitions and tools for logging on ChibiOS or Linux. More...

#include "modules/loggers/logger_utils.h"
#include <time.h>
#include <stdlib.h>
#include <stdint.h>
+ Include dependency graph for logger_utils.c:

Go to the source code of this file.

Functions

FILEopen_log (char *path, char *name)
 Open a log file.
 

Detailed Description

Generic definitions and tools for logging on ChibiOS or Linux.

Definition in file logger_utils.c.

Function Documentation

◆ open_log()

FILE * open_log ( char path,
char name 
)

Open a log file.

If the log name already exists, a counter is the file name is automatically incremented.

Parameters
pathlog directory
nameuse current time if NULL, specified name otherwise
Returns
file pointer

Definition at line 34 of file logger_utils.c.

References counter, foo, and time.