1COMEDI_LOGLEVEL(3) COMEDI_LOGLEVEL(3)
2
3
4
6 comedi_loglevel - change Comedilib logging properties
7
9 #include <comedilib.h>
10
11 int comedi_loglevel (int loglevel);
12
14 This function affects the output of debugging and error messages from
15 Comedilib. By increasing the loglevel, additional debugging informa‐
16 tion will be printed. Error and debugging messages are printed to the
17 stream stderr.
18
19 The default loglevel can be set by using the environment variable
20 COMEDI_LOGLEVEL. The default loglevel is 1.
21
22 In order to conserve resources, some debugging information is disabled
23 by default when Comedilib is compiled.
24
25 The meaning of the loglevels is as follows:
26
27 COMEDI_LOGLEVEL=0 Comedilib prints nothing.
28
29 COMEDI_LOGLEVEL=1 (default) Comedilib prints error messages when there
30 is a self-consistency error (i.e., an internal bug.)
31
32 COMEDI_LOGLEVEL=2 Comedilib prints an error message when an invalid
33 parameter is passed.
34
35 COMEDI_LOGLEVEL=3 Comedilib prints an error message whenever an error
36 is generated in the Comedilib library or in the C library, when called
37 by Comedilib.
38
39 COMEDI_LOGLEVEL=4 Comedilib prints a lot of junk.
40
42 This function returns the previous loglevel.
43
44 28 October 2007 COMEDI_LOGLEVEL(3)