2009-02-05 21:28:18 +03:00
|
|
|
/** \file logging.h
|
|
|
|
* \brief Header: provides a log file to ease tracing the program
|
|
|
|
*/
|
|
|
|
|
2006-01-28 02:48:49 +03:00
|
|
|
#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.
|
|
|
|
*/
|
|
|
|
|
2010-11-08 13:21:45 +03:00
|
|
|
/*** typedefs(not structures) and defined constants **********************************************/
|
|
|
|
|
2009-11-24 12:36:44 +03:00
|
|
|
#define mc_log_mark() mc_log("%s:%d\n",__FILE__,__LINE__)
|
2009-10-30 01:55:36 +03:00
|
|
|
|
2010-11-08 13:21:45 +03:00
|
|
|
/*** enums ***************************************************************************************/
|
|
|
|
|
|
|
|
/*** structures declarations (and typedefs of structures)*****************************************/
|
|
|
|
|
|
|
|
/*** global variables defined in .c file *********************************************************/
|
|
|
|
|
|
|
|
/*** declarations of public functions ************************************************************/
|
|
|
|
|
2015-08-25 15:28:01 +03:00
|
|
|
/* *INDENT-OFF* */
|
|
|
|
void mc_log (const char *fmt, ...) G_GNUC_PRINTF (1, 2);
|
|
|
|
void mc_always_log (const char *fmt, ...) G_GNUC_PRINTF (1, 2);
|
|
|
|
/* *INDENT-ON* */
|
2010-11-08 13:21:45 +03:00
|
|
|
|
|
|
|
/*** inline functions ****************************************************************************/
|
2006-01-28 02:48:49 +03:00
|
|
|
|
|
|
|
#endif
|