Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
SHTK_CLI_SET_LOG_LEVEL(3)   Library Functions Manual SHTK_CLI_SET_LOG_LEVEL(3)

NAME
       shtk_cli_set_log_level  --  Sets	 the  level of the logging messages to
       display

LIBRARY
       shtk_import cli

SYNOPSIS
       shtk_cli_set_log_level level

DESCRIPTION
       The shtk_cli_set_log_level function sets	the maximum logging  level  of
       the  messages  that  will  be  sent to stderr.  The possible values for
       level are,  in  order  of  severity:  `error',  `warning',  `info'  and
       `debug',	  and	correspond  to	the  various  functions	 of  the  form
       `shtk_cli_<level>'.

       For example: setting the	level to `warning' would  display  error-level
       and  warning-level  messages  but would omit info-level and debug-level
       messages.  This is an appropriate way of	implementing  a	 quiet/verbose
       mode in applications.

       It  is important	to note	that error-level messages are always displayed
       because the minimum logging level that can be set is `error'.

       The  current  log  level	 can  be  programmatically  queried  with  the
       shtk_cli_log_level(3)  function	and  the  default level	corresponds to
       `info'.

SEE ALSO
       shtk(3),	shtk_cli_log_level(3)

HISTORY
       shtk_cli_set_log_level first appeared in	shtk 1.7.

FreeBSD	Ports 14.quarterly     February	3, 2016	     SHTK_CLI_SET_LOG_LEVEL(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=shtk_cli_set_log_level&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help