shishi_error_set_outputtype(3)

πŸ“¦
version 1.0.3 Β· 2 versions
  • 1.0.3 Β· debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.0.2 Β· ubuntu jammy
, in debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

shishi_error_set_outputtype β€” it's an API function, bestie πŸ’…


🌸 SYNOPSIS 🌸

#include <shishi.h>

void shishi_error_set_outputtype(Shishi * handle, int type);

πŸŽ€ ARGUMENTS πŸŽ€

  • Shishi * handle β€” your shishi handle, aka the lil guy you got from shishi_init(). You know the one 🫢
  • int type β€” the output type, and it's of enum type Shishi_outputtype. Very demure, very typed.

πŸ’– DESCRIPTION πŸ’–

Okay so what this does: it sets the output type β€” that's NULL, stderr or syslog β€” for all the information and warning messages. Basically it's the vibe check for where your messages go πŸ‘‘

The intended values are:

  • SHISHI_OUTPUTTYPE_NULL β€” no output at all, silence, ghost mode πŸ’€
  • SHISHI_OUTPUTTYPE_STDERR β€” output goes to the console, classic
  • SHISHI_OUTPUTTYPE_SYSLOG β€” syslog messaging, for the sysadmin girlies

And here's the little plot twist: that first value covers everything different from the latter two values. So like, anything that isn't SHISHI_OUTPUTTYPE_STDERR or SHISHI_OUTPUTTYPE_SYSLOG gets treated as SHISHI_OUTPUTTYPE_NULL. No cap, that's literally what it says. ✨


😭 REPORTING BUGS 😭

Found a bug? Not the moment, but okay β€” report it to <bug-shishi@gnu.org> πŸ’Œ


Copyright Β© 2002-2022 Simon Josefsson.

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, honestly 🌈


πŸ¦‹ SEE ALSO πŸ¦‹

The full documentation for shishi is maintained as a Texinfo manual. If the info and shishi programs are properly installed at your site, this command

info shishi

should give you access to the complete manual. Go read it, it's giving main character energy πŸ“–πŸ’œ


That's the whole page, bestie β€” from the shishi manual, version 1.0.3, in the shishi_error_set_outputtype(3) section. Stan a documented API function πŸ’…βœ¨