comedi_loglevel(3)

comedi_loglevel3

Change comedilib logging properties

Usage

#include <comedilib.h>

int comedi_loglevel(int loglevel);

Overview

This function affects the output of debugging and error messages from Comedilib. By increasing the log level loglevel, additional debugging information will be printed. Error and debugging messages are printed to the standard error output stream stderr.

The default loglevel can be set by using the environment variable COMEDI_LOGLEVEL. The default log level is 1.

In order to conserve resources, some debugging information is disabled by default when Comedilib is compiled.

The meaning of the log levels is as follows:

LoglevelBehavior
0Comedilib prints nothing.
1(default) Comedilib prints error messages when there is a self-consistency error (i.e., an internal bug.)
2Comedilib prints an error message when an invalid parameter is passed.
3Comedilib prints an error message whenever an error is generated in the Comedilib library or in the C library, when called by Comedilib.
4Comedilib prints a lot of junk.

Return value

This function returns the previous log level.

Releases

12 releases since Debian 3.0 (Woody); the text changed 9 times.

  1. 3.0
  2. 3.1–4.0
  3. 5.0–6.0
  4. 7
  5. 8
  6. 9
  7. 10
  8. 11
  9. 12
  10. 13

Authors

David Schleef <[email protected]>

Author.

Frank Mori Hess <[email protected]>

Author.

Herman Bruyninckx <[email protected]>

Author.

Bernd Porr <[email protected]>

Author.

Ian Abbott <[email protected]>

Author.

Éric Piel <[email protected]>

Author.

From libcomedi-dev 0.11.0+5-1.3+b1 in Debian 13 (Trixie). Parsed by carta from the page's man source.