summaryrefslogtreecommitdiff
path: root/nslcd/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'nslcd/log.h')
-rw-r--r--nslcd/log.h25
1 files changed, 10 insertions, 15 deletions
diff --git a/nslcd/log.h b/nslcd/log.h
index 277daa7..d86ef8c 100644
--- a/nslcd/log.h
+++ b/nslcd/log.h
@@ -23,25 +23,20 @@
#ifndef NSLCD__LOG_H
#define NSLCD__LOG_H 1
-#include <syslog.h>
#include "compat/attrs.h"
+#define LOG_EMERG 0
+#define LOG_ALERT 1
+#define LOG_CRIT 2
+#define LOG_ERR 3
+#define LOG_WARNING 4
+#define LOG_NOTICE 5
+#define LOG_INFO 6
+#define LOG_DEBUG 7
+
/* set loglevel when no logging is configured */
void log_setdefaultloglevel(int loglevel);
-/* configure logging to a file */
-void log_addlogging_file(int loglevel, const char *filename);
-
-/* configure logging to syslog */
-void log_addlogging_syslog(int loglevel);
-
-/* configure a null logging mode (no logging) */
-void log_addlogging_none(void);
-
-/* start the logging with the configured logging methods
- if no method is configured yet, logging is done to syslog */
-void log_startlogging(void);
-
/* indicate that a session id should be included in the output
and set it to a new value */
void log_newsession(void);
@@ -59,7 +54,7 @@ void log_setrequest(const char *format, ...)
void log_log(int pri, const char *format, ...)
LIKE_PRINTF(2, 3);
-/* log the logging configuration on DEBUG loglevel */
+/* log the logger config at the LOG_DEBUG level */
void log_log_config(void);
#endif /* not NSLCD__LOG_H */