#SRCDS: Console Filtering

1 messages · Page 1 of 1 (latest)

quasi stirrup
#

I know that Cleaner (https://github.com/accelerator74/Cleaner) is a thing, but it's very hit-or-miss as it isn't guaranteed to work on all panels (looking at you, Pterodactyl).

We need a built-in way to filter console messages for the sake of troubleshooting, development, and most importantly: moderation. Having a bunch of VScript errors or misc. warnings spamming on my console that are otherwise safe to ignore do not serve me at all.

GitHub

Console warning suppressor. Contribute to accelerator74/Cleaner development by creating an account on GitHub.

#

@wind plume why against it? Just curious

quasi stirrup
wind plume
glad cipher
#

Does con_filter_text_out with con_filter_enable 1 not help?

quasi stirrup
glad cipher
quasi stirrup
#

Because this is what I got on my Linux dedicated server after having done a find:

"con_group_include_name" = "0"
 game
 - Includes groups when printing.
"con_group_reload"
 game
 - Reloads all console groups.
"con_group_list"
 game
 - Prints a list of all console groups.
"con_group_toggle"
 game
 - Toggles a console group.
"con_timestamp" = "0"
 - Prefix console.log entries with timestamps
"con_logfile" = ""
 - Console output gets written to this file
glad cipher
#

Oh that might be the case then yeah
Then it won't help, sorry

quasi stirrup
#

SRCDS: Console Filtering

plain ibex
#

I’d honestly prefer structured logging for this.

quasi stirrup
plain ibex
quasi stirrup
plain ibex
quasi stirrup
plain ibex
quasi stirrup
#

Semi-offtopic, but having JSON in Source would be dope ngl

plain ibex
quasi stirrup
#

VDF are keyvalues but they're not quite like JSON I think

#

Like, what about arrays for example?

#

Wait am I confusing with another format

#

Nvm I wasn't

#
"Header"
{
  "0"
  {
    (...)
  }
  "1"
  {
    (...)
  }
  (...)
}

^This is ugly.

{
  "key": [0, 1, (...)]
}

^This is much nicer and readable

#

You can also insert integers, floats, and booleans without "'s

#

No need to convert from/to string back and forth

plain ibex
#

Fair enough.