Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

file 26 lines (20 sloc) 0.548 kb
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
#ifndef _LOG_H_
#define _LOG_H_

#include <stdio.h>
#include <stdarg.h>
#include <time.h>
/*
input: name of file to log too
input: onoff, 0 means no logging
global: creates a global variable FILE* lg_file
*/

void i_lhead ( const char *file, int line );
void i_init_log( const char *name, int onoff );
void i_loog(int level,const char *msg, ... );
void i_fatal ( int exitcode,const char *fmt, ... );


#ifdef IMAGER_LOG
#define mm_log(x) { i_lhead(__FILE__,__LINE__); i_loog x; }
#else
#define mm_log(x)
#endif


#endif /* _LOG_H_ */
Something went wrong with that request. Please try again.