summaryrefslogtreecommitdiffstats
path: root/support/include/xlog.h
diff options
context:
space:
mode:
authorneilbrown <neilbrown>2005-03-14 05:49:57 +0000
committerneilbrown <neilbrown>2005-03-14 05:49:57 +0000
commit3a2c185ce46190b9f4712b2432297aa04f4bdd33 (patch)
tree79b74b5c034cabfedf58043a4a658c1e7d2a0022 /support/include/xlog.h
parent54669c988cc7609a4aab1021604244424ebb795a (diff)
downloadnfs-utils-3a2c185ce46190b9f4712b2432297aa04f4bdd33.tar.gz
nfs-utils-3a2c185ce46190b9f4712b2432297aa04f4bdd33.tar.xz
nfs-utils-3a2c185ce46190b9f4712b2432297aa04f4bdd33.zip
Sanitise stderr logging.
Diffstat (limited to 'support/include/xlog.h')
-rw-r--r--support/include/xlog.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/support/include/xlog.h b/support/include/xlog.h
index 2a839c7..cf9bc91 100644
--- a/support/include/xlog.h
+++ b/support/include/xlog.h
@@ -7,12 +7,15 @@
#ifndef XLOG_H
#define XLOG_H
+/* These are logged always. L_FATAL also does exit(1) */
#define L_FATAL 0x0100
#define L_ERROR 0x0200
#define L_WARNING 0x0400
#define L_NOTICE 0x0800
#define L_ALL 0xFF00
+/* These are logged if enabled with xlog_[s]config */
+/* NB: code does not expect ORing together D_ and L_ */
#define D_GENERAL 0x0001 /* general debug info */
#define D_CALL 0x0002
#define D_AUTH 0x0004
@@ -31,7 +34,8 @@ struct xlog_debugfac {
};
void xlog_open(char *progname);
-void xlog_background(void);
+void xlog_stderr(int on);
+void xlog_syslog(int on);
void xlog_config(int fac, int on);
void xlog_sconfig(char *, int on);
int xlog_enabled(int fac);