wxLogNull(3)

πŸ“¦
version 29.0.6 Β· 3 versions
, in ubuntu stonking

✨ wxLogNull(3) ✨

okay bestie, so this is a page from the Erlang Module Definition manual, and today's main character is wxLogNull 🫢 buckle up.


πŸ’– NAME πŸ’–

wxLogNull β€” this class lets you temporarily suspend logging, no cap.


🌸 DESCRIPTION 🌸

So here's the vibe: for the entire lifetime of an object of this class, all calls to the log functions are just... ignored. Like, completely. Not a peep. πŸ™ˆβœ¨

And specifically? It can be used to suppress the log messages that wxWidgets itself hands you. But β€” and this is important, bestie, don't skip this part β€” it should be noted that this is rarely the best way to cope with this problem, because all log messages get suppressed. Every single one. Even the ones that indicate a completely different error than the one the programmer actually wanted to suppress. 😭 like you thought you were muting one guy and you muted the whole group chat.

For instance, the example of the overview:

would be better written as:

wxWidgets docs: wxLogNull

no fr, that's genuinely how the original reads β€” the code examples live in the docs, and this page just points you there. πŸ’…

πŸŽ€ DATA TYPES πŸŽ€

  • wxLogNull() :: wx:wx_object().

🌈 FUNCTIONS 🌈

  • destroy(This :: wxLogNull()) -> ok. β€” Destroys the object. bye bye πŸ‘‹πŸ’€
  • new() -> wxLogNull(). β€” Suspends logging. the silence begins ✨🀫

and that's the whole page, you ate that πŸ“ thanks for reading, mwah πŸ’œ

~ signed off with love from Ericsson AB, running wx 2.6, and yes this is still wxLogNull(3) in case you forgot where you were πŸŽ€πŸ¦‹β­

πŸ“¦ where this page comes from