summaryrefslogtreecommitdiff
path: root/nslcd/log.h
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2013-02-23 17:01:21 +0100
committerArthur de Jong <arthur@arthurdejong.org>2013-02-23 17:21:14 +0100
commit22be9b0ba4b8ab3fbcd76bf5fce858779cc7056c (patch)
tree2ad54f76789bb0f01c6fa1a410fdd04a21071202 /nslcd/log.h
parentc12768a087ba0bf4f0e2be92c7b9874ad236951e (diff)
implement functions for configuring alternative logging
Diffstat (limited to 'nslcd/log.h')
-rw-r--r--nslcd/log.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/nslcd/log.h b/nslcd/log.h
index c88613b..3cf8cb1 100644
--- a/nslcd/log.h
+++ b/nslcd/log.h
@@ -1,7 +1,7 @@
/*
log.h - definitions of logging funtions
- Copyright (C) 2002, 2003, 2007, 2008, 2010, 2011, 2012 Arthur de Jong
+ Copyright (C) 2002, 2003, 2007, 2008, 2010, 2011, 2012, 2013 Arthur de Jong
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
@@ -27,7 +27,16 @@
#include "compat/attrs.h"
/* set loglevel when no logging is configured */
-void log_setdefaultloglevel(int pri);
+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 */