File: logging.h

package info (click to toggle)
mc 3%3A4.8.33-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 23,464 kB
  • sloc: ansic: 100,652; sh: 8,463; perl: 2,339; makefile: 1,501; cs: 44; lisp: 44; sed: 16
file content (32 lines) | stat: -rw-r--r-- 1,111 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/** \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 ************************************************************/

/* *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* */

/*** inline functions ****************************************************************************/

#endif