~ubuntu-branches/ubuntu/lucid/nfs-utils/lucid

« back to all changes in this revision

Viewing changes to support/include/xlog.h

  • Committer: Bazaar Package Importer
  • Author(s): Anibal Monsalve Salazar
  • Date: 2006-07-03 10:36:59 UTC
  • mto: (12.1.1 feisty)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20060703103659-71qzs6f21zzmjmhx
Tags: upstream-1.0.8
ImportĀ upstreamĀ versionĀ 1.0.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
#ifndef XLOG_H
8
8
#define XLOG_H
9
9
 
 
10
/* These are logged always. L_FATAL also does exit(1) */
10
11
#define L_FATAL         0x0100
11
12
#define L_ERROR         0x0200
12
13
#define L_WARNING       0x0400
13
14
#define L_NOTICE        0x0800
14
15
#define L_ALL           0xFF00
15
16
 
 
17
/* These are logged if enabled with xlog_[s]config */
 
18
/* NB: code does not expect ORing together D_ and L_ */
16
19
#define D_GENERAL       0x0001          /* general debug info */
17
20
#define D_CALL          0x0002
18
21
#define D_AUTH          0x0004
31
34
};
32
35
 
33
36
void                    xlog_open(char *progname);
34
 
void                    xlog_background(void);
 
37
void                    xlog_stderr(int on);
 
38
void                    xlog_syslog(int on);
35
39
void                    xlog_config(int fac, int on);
36
40
void                    xlog_sconfig(char *, int on);
37
41
int                     xlog_enabled(int fac);