gnutls_global_set_log_function(3)
β¨ NAME β¨
gnutls_global_set_log_function β the API function where you hand gnutls the log function it's gonna use π«Ά
(it lives in the gnutls manual, bestie, and it's lowkey a debugging-only queen π)
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
void gnutls_global_set_log_function(gnutls_log_func log_func);
π ARGUMENTS π
gnutls_log_func log_funcβ it's a log function. that's it, that's the whole vibe π
π¦ DESCRIPTION π¦
okay so this is the function where you set the logging function gnutls is going to use. like, you're basically telling gnutls "hey bestie, when you wanna yap about what you're doing, yap here" π’β¨
This function only accepts a character array. no cap.
ngl, normally you may not use this function since it is only used for debugging purposes. it's giving "dev tools only, not for the girlies in prod" π
And here's the tea on the type: gnutls_log_func is of the form,
void (*gnutls_log_func)( int level, const char*);
so it takes a level and a string, and returns nothing. periodt π
π REPORTING BUGS π
Found a bug? don't be shy, spill it π
- Report bugs to <bugs@gnutls.org>.
- Home page: https://www.gnutls.org
π COPYRIGHT π
Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. slay, that's a genuinely iconic license move π
π SEE ALSO π
The full documentation for gnutls is maintained as a Texinfo manual. If the /usr/share/doc/gnutls/ directory does not contain the HTML form, visit
https://www.gnutls.org/manual/
and that's the whole page, bestie!! this was gnutls version 3.8.13, brought to you by the gnutls manual, mwah π go set that log function and have main character energy π§β¨
π¦ where this page comes from
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms