mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
feb733663f
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
30 lines
1.0 KiB
C
30 lines
1.0 KiB
C
/** \file logging.h
|
|
* \brief Header: provides a log file to ease tracing the program
|
|
*/
|
|
|
|
#ifndef MC_LOGGING_H
|
|
#define MC_LOGGING_H
|
|
|
|
/*
|
|
This file provides an easy-to-use function for writing all kinds of
|
|
events into a central log file that can be used for debugging.
|
|
*/
|
|
|
|
/*** typedefs(not structures) and defined constants **********************************************/
|
|
|
|
#define mc_log_mark() mc_log("%s:%d\n",__FILE__,__LINE__)
|
|
|
|
/*** enums ***************************************************************************************/
|
|
|
|
/*** structures declarations (and typedefs of structures)*****************************************/
|
|
|
|
/*** global variables defined in .c file *********************************************************/
|
|
|
|
/*** declarations of public functions ************************************************************/
|
|
|
|
extern void mc_log (const char *, ...) __attribute__ ((__format__ (__printf__, 1, 2)));
|
|
|
|
/*** inline functions ****************************************************************************/
|
|
|
|
#endif
|