wxLogNull(3)
β¨ 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
- ubuntu stonking: erlang-doc 1:29.0.6+dfsg-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms