X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Flogging.h;h=fa6accb754eb34903951719c5b203f1fa12713a2;hb=b0a676988a8da3120e64ef0e1a4ea4c28b1511e1;hp=014565faf1da02727eac22327f9eb978535f60c5;hpb=8822481d7b11db72d5400717d6b491b5f36bcb1f;p=meshlink diff --git a/src/logging.h b/src/logging.h index 014565fa..fa6accb7 100644 --- a/src/logging.h +++ b/src/logging.h @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: logging.h,v 1.2 2002/04/13 10:29:07 zarq Exp $ + $Id: logging.h,v 1.7 2002/04/13 11:00:41 zarq Exp $ */ #ifndef __TINC_LOGGING_H__ @@ -53,6 +53,20 @@ extern avl_tree_t *log_hooks_tree; extern void log(int, int, char *, ...); extern void log_add_hook(log_function_t *); extern void log_del_hook(log_function_t *); -extern log_function_t log_default_hook; +extern log_function_t log_default; +extern log_function_t log_syslog; +extern void tinc_syslog(int, char *, ...); + +#ifndef LOG_ERR /* Something from syslog.h */ +# define syslog tinc_syslog +#define LOG_EMERG 0 /* system is unusable */ +#define LOG_ALERT 1 /* action must be taken immediately */ +#define LOG_CRIT 2 /* critical conditions */ +#define LOG_ERR 3 /* error conditions */ +#define LOG_WARNING 4 /* warning conditions */ +#define LOG_NOTICE 5 /* normal but significant condition */ +#define LOG_INFO 6 /* informational */ +#define LOG_DEBUG 7 /* debug-level messages */ +#endif #endif /* __TINC_LOGGING_H__ */