Updated doc/NEWS file
[midnight-commander.git] / lib / logging.h
blobfa94c57de2eba96efd30021b6450526d20e4bdeb
1 /** \file logging.h
2 * \brief Header: provides a log file to ease tracing the program
3 */
5 #ifndef MC_LOGGING_H
6 #define MC_LOGGING_H
8 /*
9 This file provides an easy-to-use function for writing all kinds of
10 events into a central log file that can be used for debugging.
13 /*** typedefs(not structures) and defined constants **********************************************/
15 #define mc_log_mark() mc_log("%s:%d\n",__FILE__,__LINE__)
17 /*** enums ***************************************************************************************/
19 /*** structures declarations (and typedefs of structures)*****************************************/
21 /*** global variables defined in .c file *********************************************************/
23 /*** declarations of public functions ************************************************************/
25 extern void mc_log (const char *, ...) __attribute__ ((__format__ (__printf__, 1, 2)));
26 extern void mc_always_log (const char *, ...) __attribute__ ((__format__ (__printf__, 1, 2)));
28 /*** inline functions ****************************************************************************/
30 #endif