summaryrefslogtreecommitdiff
path: root/nslcd/log.h
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2011-03-19 15:13:31 +0000
committerArthur de Jong <arthur@arthurdejong.org>2011-03-19 15:13:31 +0000
commit2cc65e1588bbd61b47654043d497a9fe0ec1ccbb (patch)
treeb059d39fb80a6be18e3c2359739dcdfad7e6429c /nslcd/log.h
parente7c95cfdb8698109dce244c748dd292e0dcd5dd3 (diff)
remove logging functionality that isn't used
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1399 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd/log.h')
-rw-r--r--nslcd/log.h28
1 files changed, 1 insertions, 27 deletions
diff --git a/nslcd/log.h b/nslcd/log.h
index 9b7259f..27003a6 100644
--- a/nslcd/log.h
+++ b/nslcd/log.h
@@ -23,57 +23,31 @@
#ifndef NSLCD__LOG_H
#define NSLCD__LOG_H 1
-
#include <syslog.h>
#include "compat/attrs.h"
-
/* set loglevel when no logging is configured */
-void log_setdefaultloglevel(int loglevel);
-
-
-/* configure logging to a file */
-void log_addlogging_file(const char *filename,int loglevel);
-
-
-/* configure logging to syslog */
-void log_addlogging_syslog(int loglevel);
-
-
-/* configure a null logging mode (no logging) */
-void log_addlogging_none(void);
-
+void log_setdefaultloglevel(int pri);
/* 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);
-
/* indicate that we should clear any session identifiers set by
log_newsession */
void log_clearsession(void);
-
/* indicate that a request identifier should be included in the output
from this point on, until log_newsession() is called */
void log_setrequest(const char *format, ...)
LIKE_PRINTF(1,2);
-
/* log the given message using the configured logging method */
void log_log(int pri,const char *format, ...)
LIKE_PRINTF(2,3);
-
-/* return the syslog loglevel represented by the string
- return -1 on unknown */
-int log_getloglevel(const char *lvl)
- MUST_USE;
-
-
#endif /* not NSLCD__LOG_H */