SHTK_CLI_SET_LOG_LEVEL(3)
β¨ shtk_cli_set_log_level(3) β the "how loud should my logs be" manual page β¨
okay so this is a page from the shtk_cli_set_log_level manual, and honestly it's giving very useful, very main-character energy π
let me walk you through it bestie π«Ά
πΈ 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 β¨
so what does this function actually do? π« The shtk_cli_set_log_level function sets the maximum logging level of the messages that will be sent to stderr. That's literally it, and it's iconic for it.
The possible values for level are, in order of severity: error, warning, info and debug β and each one corresponds to the various functions of the form <level> in shtk_cli_<level> style π
For example: setting the level to warning would display error-level and warning-level messages but would omit info-level and debug-level messages. ngl that's literally the perfect way to implement a quiet/verbose mode in applications π₯
π important to note: error-level messages are always displayed, because the minimum logging level that can be set is error. so like, you cannot silence the errors, bestie, they will find you π
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 β
okay that's the whole vibe check β this page is from the Debian crew, dated February 3, 2016, and it's part of the shtk manual β periodt ππ«Ά
π¦ where this page comes from
- nixos 26.05: shtk 1.7
- nixpkgs unstable: shtk 1.7
- Copyright 2016 Google Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms