27 #ifndef DATA_LOGGING_H 28 #define DATA_LOGGING_H 33 #define LOG_FILE_PATH_MAX_LENGTH 256 34 #define DATA_LOG_MAX_PRECISION 15 37 #define DEBUG_PRINT( formatString, ... ) Log_PrintString( NULL, "%s(%d): " formatString, __func__, __LINE__, __VA_ARGS__ ) 40 #define DEBUG_PRINT( formatString, ... ) 51 Log Log_Init(
const char* logPath,
size_t dataPrecision );
89 #endif // DATA_LOGGING_H void Log_End(Log log)
Deallocate and destroys given data structure.
void Log_SetBaseName(const char *baseName)
Define a common base (folder) name and time stamp for log files.
void Log_PrintString(Log log, const char *formatString,...)
Log custom string.
void Log_SetDirectory(const char *directoryPath)
Overwrite default root file path where logs will be saved.
struct _LogData LogData
Single log internal data structure.
Definition: data_logging.h:44
Log Log_Init(const char *logPath, size_t dataPrecision)
Initialize data logging to terminal or a specific text file.
void Log_RegisterValues(Log log, size_t valuesNumber,...)
Log a numerical values in a variable arguments list format.
LogData * Log
Opaque reference to log internal data structure.
Definition: data_logging.h:45
void Log_RegisterList(Log log, size_t valuesNumber, double *valuesList)
Log a numerical values in a array format.
void Log_EnterNewLine(Log log, double timeStamp)
Enter new log line indexed in time.