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)
|