void unsetuplog(const char *logstr);
/* finish up and close the logs */
-void log_close();
+void log_close(void);
/* This function sets up the ProcessName */
void set_processname(const char *processname);
any configured file-logging deactivates syslog logging
*/
-#define LOG(a,b, ...) \
+#define LOG(level, type, ...) \
do { \
if ( ! log_config.inited) \
log_init(); \
- if (file_configs[b].level >= a) \
+ if (file_configs[(type)].level >= (level)) \
log_src_filename = __FILE__, \
log_src_linenumber = __LINE__, \
- make_log_entry(a, b, __VA_ARGS__); \
- else if (( ! log_config.filelogging) && (log_config.syslog_level >= a)) \
- make_syslog_entry(a, b, __VA_ARGS__); \
+ make_log_entry((level), (type), __VA_ARGS__); \
+ else if (( ! log_config.filelogging) && (log_config.syslog_level >= (level))) \
+ make_syslog_entry((level), (type), __VA_ARGS__); \
} while(0)
#endif /* _ATALK_LOGGER_H */