multitheftauto / mtasa-blue

Multi Theft Auto is a game engine that incorporates an extendable network play element into a proprietary commercial single-player game.
https://multitheftauto.com
GNU General Public License v3.0
1.38k stars 427 forks source link

Allow comma separated list for scriptdebugloglevel #3445

Open ds1-e opened 3 months ago

ds1-e commented 3 months ago

Is your feature request related to a problem? Please describe.

It would be great, if we could choose which debug messages will appear in log file. Currently it is achievable, but in a more restricted way.

Describe the solution you'd like

<scriptdebugloglevel>1,2</scriptdebugloglevel>

For errors and warnings only.

<scriptdebugloglevel>0,3,4</scriptdebugloglevel>

For info messages and custom messages only. Levels available here: https://wiki.multitheftauto.com/wiki/outputDebugString

Describe alternatives you've considered

none

Additional context

<enablesd></enablesd>

Already does similar approach.

Security Policy

TracerDS commented 3 months ago

3443 related