[Asterisk-Users] syslog patch

Michiel Betel michiel at betel.nl
Mon Mar 31 07:38:45 MST 2003


Hi

I've written a small patch to logger.c which enables * to log to syslog
ased on a setting in the logger.conf file.

However, Asterisk uses the same macros as sys/sylog does. Changing the
asterisk defines won't help since they also do the macro expansion to
filename & linenumber.
Not being an experienced C programmer what is the normal way to solve this?
Change all asterisk LOG_WARNING/NOTICE/ERROR to AST_LOG_WARNING? or
include a modified version of /sys/syslog? or just ignore the overwrites,
meaning logger.c can't itself call ast_log?

Michiel
-- 




More information about the asterisk-users mailing list