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 πŸ“


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