League-of-Foundry-Developers / foundryvtt-devMode

A module with some tools to help enable Foundry VTT package developers.
MIT License
12 stars 15 forks source link

Add the posibility to configure the available loglevels #17

Closed ghost91- closed 3 years ago

ghost91- commented 3 years ago

Is your feature request related to a problem? Please describe. Currently, the order of log levels makes it difficult to easily compare the configured log level against the log level of a given log statement. Additionally, there are more log levels than I actually need.

Describe the solution you'd like In order to solve the order problem in a backwards compatible way, I would be grate to be able to provide a list of number-lable pairs which would be used as possible values for log levels. This could (optionally) be passed in as part of the options in the call to registerPackageDebugFlag

Describe alternatives you've considered

Additional context See the discussion following https://discord.com/channels/732325252788387980/732325252788387983/882371382443384953

akrigline commented 3 years ago

Done in v1.4.0