Ticket #1790: mc crashes on start
[midnight-commander.git] / src / logging.h
blob27c00c08f178a3cf785a2f59fde6ad1a0c1879c0
2 /** \file logging.h
3 * \brief Header: provides a log file to ease tracing the program
4 */
6 #ifndef MC_LOGGING_H
7 #define MC_LOGGING_H
9 /*
10 This file provides an easy-to-use function for writing all kinds of
11 events into a central log file that can be used for debugging.
14 #define mc_log_mark() mc_log("%s:%d\n",__FILE,__LINE__)
16 extern void mc_log(const char *, ...)
17 __attribute__((__format__(__printf__,1,2)));
19 #endif