OpenTabletDriver icon indicating copy to clipboard operation
OpenTabletDriver copied to clipboard

Add LogLevel configuration

Open X9VoiD opened this issue 2 years ago • 3 comments

Default LogLevel is set to Info.

The configuration file is loaded only during boot sequence of daemon, and reconnection of UX (why do we still have two separate instances of everything in OpenTabletDriver.Desktop/Plugin).

Generated file looks like this:

# The minimum level of log messages to output. Valid values are Debug, Info, Warning, Error, Fatal
loglevel = "Info"

This supersedes #2176.

X9VoiD avatar Apr 10 '22 12:04 X9VoiD

Why is this using TOML? This could easily be done in the Settings class.

InfinityGhost avatar Apr 13 '22 19:04 InfinityGhost

Things are already logged before settings is loaded.

X9VoiD avatar Apr 13 '22 20:04 X9VoiD

I'm not sure if I like the TOML idea either. How about using env vars?

gonX avatar Jun 12 '22 04:06 gonX

@X9VoiD respond pls

gonX avatar Nov 07 '22 13:11 gonX

Env vars is fine, will update at some point.

X9VoiD avatar Nov 07 '22 22:11 X9VoiD