mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
Updates for modified logging API.
svn path=/trunk/icecast/; revision=3752
This commit is contained in:
parent
49e028cd02
commit
3727b2b32c
@ -17,25 +17,25 @@ extern int accesslog;
|
||||
#define __FUNCTION__ __FILE__
|
||||
#endif
|
||||
|
||||
#define ERROR0(y) log_write(errorlog, 1, CATMODULE "/" __FUNCTION__, y)
|
||||
#define ERROR1(y, a) log_write(errorlog, 1, CATMODULE "/" __FUNCTION__, y, a)
|
||||
#define ERROR2(y, a, b) log_write(errorlog, 1, CATMODULE "/" __FUNCTION__, y, a, b)
|
||||
#define ERROR3(y, a, b, c) log_write(errorlog, 1, CATMODULE "/" __FUNCTION__, y, a, b, c)
|
||||
#define ERROR0(y) log_write(errorlog, 1, CATMODULE "/", __FUNCTION__, y)
|
||||
#define ERROR1(y, a) log_write(errorlog, 1, CATMODULE "/", __FUNCTION__, y, a)
|
||||
#define ERROR2(y, a, b) log_write(errorlog, 1, CATMODULE "/", __FUNCTION__, y, a, b)
|
||||
#define ERROR3(y, a, b, c) log_write(errorlog, 1, CATMODULE "/", __FUNCTION__, y, a, b, c)
|
||||
|
||||
#define WARN0(y) log_write(errorlog, 2, CATMODULE "/" __FUNCTION__, y)
|
||||
#define WARN1(y, a) log_write(errorlog, 2, CATMODULE "/" __FUNCTION__, y, a)
|
||||
#define WARN2(y, a, b) log_write(errorlog, 2, CATMODULE "/" __FUNCTION__, y, a, b)
|
||||
#define WARN3(y, a, b, c) log_write(errorlog, 2, CATMODULE "/" __FUNCTION__, y, a, b, c)
|
||||
#define WARN0(y) log_write(errorlog, 2, CATMODULE "/", __FUNCTION__, y)
|
||||
#define WARN1(y, a) log_write(errorlog, 2, CATMODULE "/", __FUNCTION__, y, a)
|
||||
#define WARN2(y, a, b) log_write(errorlog, 2, CATMODULE "/", __FUNCTION__, y, a, b)
|
||||
#define WARN3(y, a, b, c) log_write(errorlog, 2, CATMODULE "/", __FUNCTION__, y, a, b, c)
|
||||
|
||||
#define INFO0(y) log_write(errorlog, 3, CATMODULE "/" __FUNCTION__, y)
|
||||
#define INFO1(y, a) log_write(errorlog, 3, CATMODULE "/" __FUNCTION__, y, a)
|
||||
#define INFO2(y, a, b) log_write(errorlog, 3, CATMODULE "/" __FUNCTION__, y, a, b)
|
||||
#define INFO3(y, a, b, c) log_write(errorlog, 3, CATMODULE "/" __FUNCTION__, y, a, b, c)
|
||||
#define INFO0(y) log_write(errorlog, 3, CATMODULE "/", __FUNCTION__, y)
|
||||
#define INFO1(y, a) log_write(errorlog, 3, CATMODULE "/", __FUNCTION__, y, a)
|
||||
#define INFO2(y, a, b) log_write(errorlog, 3, CATMODULE "/", __FUNCTION__, y, a, b)
|
||||
#define INFO3(y, a, b, c) log_write(errorlog, 3, CATMODULE "/", __FUNCTION__, y, a, b, c)
|
||||
|
||||
#define DEBUG0(y) log_write(errorlog, 4, CATMODULE "/" __FUNCTION__, y)
|
||||
#define DEBUG1(y, a) log_write(errorlog, 4, CATMODULE "/" __FUNCTION__, y, a)
|
||||
#define DEBUG2(y, a, b) log_write(errorlog, 4, CATMODULE "/" __FUNCTION__, y, a, b)
|
||||
#define DEBUG3(y, a, b, c) log_write(errorlog, 4, CATMODULE "/" __FUNCTION__, y, a, b, c)
|
||||
#define DEBUG0(y) log_write(errorlog, 4, CATMODULE "/", __FUNCTION__, y)
|
||||
#define DEBUG1(y, a) log_write(errorlog, 4, CATMODULE "/", __FUNCTION__, y, a)
|
||||
#define DEBUG2(y, a, b) log_write(errorlog, 4, CATMODULE "/", __FUNCTION__, y, a, b)
|
||||
#define DEBUG3(y, a, b, c) log_write(errorlog, 4, CATMODULE "/", __FUNCTION__, y, a, b, c)
|
||||
|
||||
/* CATMODULE is the category or module that logging messages come from.
|
||||
** we set one here in cause someone forgets in the .c file.
|
||||
|
Loading…
Reference in New Issue
Block a user