2001-12-10 01:13:39 +01:00
|
|
|
/* vi: set ts=2:
|
|
|
|
+-------------------+ Christian Schlittchen <corwin@amber.kn-bremen.de>
|
|
|
|
| | Enno Rehling <enno@eressea-pbem.de>
|
|
|
|
| Eressea PBEM host | Katja Zedel <katze@felidae.kn-bremen.de>
|
|
|
|
| (c) 1998 - 2001 | Henning Peters <faroul@beyond.kn-bremen.de>
|
|
|
|
| | Ingo Wilken <Ingo.Wilken@informatik.uni-oldenburg.de>
|
|
|
|
+-------------------+ Stefan Reich <reich@halbling.de>
|
|
|
|
|
|
|
|
This program may not be used, modified or distributed
|
|
|
|
without prior permission by the authors of Eressea.
|
|
|
|
*/
|
2001-02-12 23:39:57 +01:00
|
|
|
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
|
2001-04-29 20:23:40 +02:00
|
|
|
#define log_info(x) _log_info x
|
2001-02-12 23:39:57 +01:00
|
|
|
|
|
|
|
/* use macros above instead of these: */
|
|
|
|
extern void _log_warn(const char * format, ...);
|
|
|
|
extern void _log_error(const char * format, ...);
|
2001-04-29 20:23:40 +02:00
|
|
|
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)
|