]> sigrok.org Git - libsigrok.git/commit
libsigrok/cli: Implement loglevel support.
authorUwe Hermann <redacted>
Wed, 4 May 2011 17:03:01 +0000 (19:03 +0200)
committerUwe Hermann <redacted>
Thu, 5 May 2011 11:06:13 +0000 (13:06 +0200)
commit1352eeddd4d164b58f2233ae109432b73faab539
tree1c6dbf4006fc9581a68180d199db776592240dd2
parent548b08e55cf05aeb8f57b26b29035c3fb153f0f5
libsigrok/cli: Implement loglevel support.

libsigrok can now be told at which loglevel to work, i.e., how many
debug/error/warning output to generate. You can also query the current
loglevel.

In sigrok-cli it is now possible to set the loglevel via -l. For example:

 - Disable all output: sigrok-cli -l 0
 - Only show errors: sigrok-cli -l 1
 - Show errors, warnings, info, and debug messages: sigrok-cli -l 4
log.c
sigrok-internal.h
sigrok-proto.h
sigrok.h