Poster of Linux kernelThe best gift for a Linux geek
COMEDI_LOGLEVEL

COMEDI_LOGLEVEL

Section: (3) Updated: 28 October 2007
Local index Up

 

NAME

comedi_loglevel - change Comedilib logging properties  

SYNOPSIS

#include <comedilib.h>

int comedi_loglevel (int loglevel);  

DESCRIPTION

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

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

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

The meaning of the loglevels is as follows:

COMEDI_LOGLEVEL=0 Comedilib prints nothing.

COMEDI_LOGLEVEL=1 (default) Comedilib prints error messages when there is a self-consistency error (i.e., an internal bug.)

COMEDI_LOGLEVEL=2 Comedilib prints an error message when an invalid parameter is passed.

COMEDI_LOGLEVEL=3 Comedilib prints an error message whenever an error is generated in the Comedilib library or in the C library, when called by Comedilib.

COMEDI_LOGLEVEL=4 Comedilib prints a lot of junk.  

RETURN VALUE

This function returns the previous loglevel.


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE

This document was created by man2html, using the manual pages.
Time: 21:43:40 GMT, April 16, 2011