DoubleDeez / MDFramework

A multiplayer C# game framework for Godot 3.4 Mono.
https://discord.gg/UH49eHK
MIT License
77 stars 13 forks source link

Introduce log override to configuration #69

Closed Beider closed 3 years ago

Beider commented 3 years ago

Currently if you want to change loglevel for a particular class you have to go in and change this in the file, it would be nice to be able to just do this from the configuration.

There are two things that could be done here,

  1. All loglevels for each separate class could be moved into the configuration allowing you to configure the loglevel in config files instead.
  2. Introduce a single configuration override setting, which if set would override all other loglevels.

Personally I think at least number 2 would be nice, number 1 might be a bit more of a pain to maintain.

DoubleDeez commented 3 years ago

I think it should work in order of increasing precedence:

and you should be able to set per log category (as is done in code and command now) maybe we also have a default in config that overrides the default set by code?