1COMEDI_LOGLEVEL(3)             Comedi reference             COMEDI_LOGLEVEL(3)
2
3
4

NAME

6       comedi_loglevel - change Comedilib logging properties
7

SYNOPSIS

9       #include <comedilib.h>
10
11       int comedi_loglevel(int loglevel);
12

DESCRIPTION

14       This function affects the output of debugging and error messages from
15       Comedilib. By increasing the log level loglevel, additional debugging
16       information will be printed. Error and debugging messages are printed
17       to the standard error output stream stderr.
18
19       The default loglevel can be set by using the environment variable
20       COMEDI_LOGLEVEL. The default log level 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 log levels is as follows:
26
27       ┌─────────┬────────────────────────────┐
28Loglevel Behavior                   
29       ├─────────┼────────────────────────────┤
30       │0        │ Comedilib prints nothing.  │
31       ├─────────┼────────────────────────────┤
32       │1        │ (default) Comedilib prints │
33       │         │ error messages when        │
34       │         │      there is a            │
35       │         │ self-consistency error     │
36       │         │ (i.e., an internal bug.)   │
37       ├─────────┼────────────────────────────┤
38       │2        │ Comedilib prints an error  │
39       │         │ message when an invalid    │
40       │         │      parameter is passed.  │
41       ├─────────┼────────────────────────────┤
42       │3        │ Comedilib prints an error  │
43       │         │ message whenever an        │
44       │         │      error is generated in │
45       │         │ the Comedilib library or   │
46       │         │ in the C library,          │
47       │         │      when called by        │
48       │         │ Comedilib.                 │
49       ├─────────┼────────────────────────────┤
50       │4        │ Comedilib prints a lot of  │
51       │         │ junk.                      │
52       └─────────┴────────────────────────────┘
53

RETURN VALUE

55       This function returns the previous log level.
56

AUTHORS

58       David Schleef <ds@schleef.org>
59           Author.
60
61       Frank Mori Hess <fmhess@users.sourceforge.net>
62           Author.
63
64       Herman Bruyninckx <Herman.Bruyninckx@mech.kuleuven.ac.be>
65           Author.
66
67       Bernd Porr <tech@linux-usb-daq.co.uk>
68           Author.
69
70       Ian Abbott <abbotti@mev.co.uk>
71           Author.
72
73       Éric Piel <piel@delmic.com>
74           Author.
75
77       Copyright © 1998-2003 David Schleef
78       Copyright © 2001-2003, 2005, 2008 Frank Mori Hess
79       Copyright © 2002-2003 Herman Bruyninckx
80       Copyright © 2012 Bernd Porr
81       Copyright © 2012 Ian Abbott
82       Copyright © 2012, 2015 Éric Piel
83
84       This document is part of Comedilib. In the context of this document,
85       the term "source code" as defined by the license is interpreted as the
86       XML source.
87
88       This library is free software; you can redistribute it and/or modify it
89       under the terms of the GNU Lesser General Public License as published
90       by the Free Software Foundation, version 2.1 of the License.
91
92       This library is distributed in the hope that it will be useful, but
93       WITHOUT ANY WARRANTY; without even the implied warranty of
94       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
95       General Public License for more details.
96
97       You should have received a copy of the GNU Lesser General Public
98       License along with this library; if not, write to the Free Software
99       Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
100       USA.
101
102
103
104
105Comedi                            05/11/2017                COMEDI_LOGLEVEL(3)
Impressum