planning too far ahead
[imager.git] / log.h
CommitLineData
02d1d628
AMH
1#ifndef _LOG_H_
2#define _LOG_H_
3
4#include <stdio.h>
5#include <stdarg.h>
6#include <time.h>
7/*
8 input: name of file to log too
9 input: onoff, 0 means no logging
10 global: creates a global variable FILE* lg_file
11*/
12
bf1573f9
TC
13void i_lhead ( const char *file, int line );
14void i_init_log( const char *name, int onoff );
15void i_loog(int level,const char *msg, ... );
16void i_fatal ( int exitcode,const char *fmt, ... );
02d1d628
AMH
17
18
19#ifdef IMAGER_LOG
bf1573f9 20#define mm_log(x) { i_lhead(__FILE__,__LINE__); i_loog x; }
02d1d628
AMH
21#else
22#define mm_log(x)
23#endif
24
25
26#endif /* _LOG_H_ */