/* vi: set ts=2: +-------------------+ Christian Schlittchen | | Enno Rehling | Eressea PBEM host | Katja Zedel | (c) 1998 - 2001 | Henning Peters | | Ingo Wilken +-------------------+ Stefan Reich This program may not be used, modified or distributed without prior permission by the authors of Eressea. */ extern void log_open(const char * filename); extern void log_printf(const char * str, ...); extern void log_puts(const char * str); extern void log_close(void); #define log_warning(x) _log_warn x #define log_error(x) _log_error x #define log_info(x) _log_info x /* use macros above instead of these: */ extern void _log_warn(const char * format, ...); extern void _log_error(const char * format, ...); extern void _log_info(unsigned int flag, const char * format, ...); #define LOG_FLUSH (1<<0) #define LOG_CPWARNING (1<<1) #define LOG_CPERROR (1<<2)