pmm  1.0.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros
pmm_log.h File Reference

logging macros More...

#include <stdio.h>
#include <time.h>
#include <sys/types.h>
#include <unistd.h>
#include <string.h>

Go to the source code of this file.

Macros

#define PMM_DBG   ""
#define PMM_LOG   ""
#define PMM_ERR   ""
#define ERRPRINTF   printf
#define LOGPRINTF   printf
#define SWITCHPRINTF   printf

Detailed Description

logging macros

Header file for logging macros. Inspired by GridSolve/NetSolve

Definition in file pmm_log.h.

Macro Definition Documentation

#define ERRPRINTF   printf

prints an error message to stderr stream including timestamp, calling file, line and function, and the formatted string passed as argument (same as printf)

Definition at line 109 of file pmm_log.h.

#define LOGPRINTF   printf

prints a logging message to stderr stream including timestamp, calling file, line and function, and the formatted string passed as argument (same as printf)

Definition at line 145 of file pmm_log.h.

#define PMM_DBG   ""

Definition at line 53 of file pmm_log.h.

#define PMM_ERR   ""

Definition at line 55 of file pmm_log.h.

#define PMM_LOG   ""

Definition at line 54 of file pmm_log.h.

#define SWITCHPRINTF   printf

calls LOGPRINTF/ERRPRINTF/DBGPRINTF depending on an argument OUTPUT which may by one of PMM_LOG, PMM_ERR, PMM_DBG

Definition at line 169 of file pmm_log.h.