diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-01-12 05:05:35 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-01-12 05:05:35 +0000 |
commit | 2f331c310e79ede902f38ea92b2077509b067b28 (patch) | |
tree | 02f9ec032bd53fec6e9b9004db327ad9991cf73a /include | |
parent | a3c67a2026e4c04913cf8c4add1f5986e1adbd16 (diff) |
Add ww's improved syslog support (bug #587)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1973 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rwxr-xr-x | include/asterisk/logger.h | 36 |
1 files changed, 31 insertions, 5 deletions
diff --git a/include/asterisk/logger.h b/include/asterisk/logger.h index 62eb34f65..9278e2b54 100755 --- a/include/asterisk/logger.h +++ b/include/asterisk/logger.h @@ -54,13 +54,39 @@ extern void ast_verbose(const char *fmt, ...) extern int ast_register_verbose(void (*verboser)(const char *string, int opos, int replacelast, int complete)); extern int ast_unregister_verbose(void (*verboser)(const char *string, int opos, int replacelast, int complete)); extern int ast_verbose_dmesg(void (*verboser)(const char *string, int opos, int replacelast, int complete)); +extern void ast_console_puts(const char *string); + #define _A_ __FILE__, __LINE__, __PRETTY_FUNCTION__ -#define LOG_DEBUG 0, _A_ -#define LOG_EVENT 1, _A_ -#define LOG_NOTICE 2, _A_ -#define LOG_WARNING 3, _A_ -#define LOG_ERROR 4, _A_ +#ifdef LOG_DEBUG +#undef LOG_DEBUG +#endif +#define __LOG_DEBUG 0 +#define LOG_DEBUG __LOG_DEBUG, _A_ + +#ifdef LOG_EVENT +#undef LOG_EVENT +#endif +#define __LOG_EVENT 1 +#define LOG_EVENT __LOG_EVENT, _A_ + +#ifdef LOG_NOTICE +#undef LOG_NOTICE +#endif +#define __LOG_NOTICE 2 +#define LOG_NOTICE __LOG_NOTICE, _A_ + +#ifdef LOG_WARNING +#undef LOG_WARNING +#endif +#define __LOG_WARNING 3 +#define LOG_WARNING __LOG_WARNING, _A_ + +#ifdef LOG_ERROR +#undef LOG_ERROR +#endif +#define __LOG_ERROR 4 +#define LOG_ERROR __LOG_ERROR, _A_ #if defined(__cplusplus) || defined(c_plusplus) } |