summaryrefslogtreecommitdiff
path: root/accel-pptpd/log.c
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2010-11-29 17:45:58 +0300
committerKozlov Dmitry <dima@server>2010-11-29 17:45:58 +0300
commitf96198bf149203e1ddca8f2c381cf4b9849cdda9 (patch)
treef4b4c10a7b489f693ecb6301d1584de22e4e90a5 /accel-pptpd/log.c
parent3a293aabc6e43319761a1f3020559873aa714334 (diff)
downloadaccel-ppp-f96198bf149203e1ddca8f2c381cf4b9849cdda9.tar.gz
accel-ppp-f96198bf149203e1ddca8f2c381cf4b9849cdda9.zip
log: introduced additional log level (3) which shows only minimum of information messages
Diffstat (limited to 'accel-pptpd/log.c')
-rw-r--r--accel-pptpd/log.c32
1 files changed, 26 insertions, 6 deletions
diff --git a/accel-pptpd/log.c b/accel-pptpd/log.c
index 582c250..7d0b485 100644
--- a/accel-pptpd/log.c
+++ b/accel-pptpd/log.c
@@ -115,12 +115,22 @@ void __export log_warn(const char *fmt,...)
}
}
-void __export log_info(const char *fmt,...)
+void __export log_info1(const char *fmt,...)
{
- if (log_level >= LOG_INFO) {
+ if (log_level >= LOG_INFO1) {
va_list ap;
va_start(ap, fmt);
- do_log(LOG_INFO, fmt, ap, NULL);
+ do_log(LOG_INFO1, fmt, ap, NULL);
+ va_end(ap);
+ }
+}
+
+void __export log_info2(const char *fmt,...)
+{
+ if (log_level >= LOG_INFO2) {
+ va_list ap;
+ va_start(ap, fmt);
+ do_log(LOG_INFO2, fmt, ap, NULL);
va_end(ap);
}
}
@@ -171,12 +181,22 @@ void __export log_ppp_warn(const char *fmt,...)
}
}
-void __export log_ppp_info(const char *fmt,...)
+void __export log_ppp_info1(const char *fmt,...)
+{
+ if (log_level >= LOG_INFO1) {
+ va_list ap;
+ va_start(ap, fmt);
+ do_log(LOG_INFO1, fmt, ap, cur_ppp);
+ va_end(ap);
+ }
+}
+
+void __export log_ppp_info2(const char *fmt,...)
{
- if (log_level >= LOG_INFO) {
+ if (log_level >= LOG_INFO2) {
va_list ap;
va_start(ap, fmt);
- do_log(LOG_INFO, fmt, ap, cur_ppp);
+ do_log(LOG_INFO2, fmt, ap, cur_ppp);
va_end(ap);
}
}