Open reivaxxavier opened 1 year ago
The main issue should be that the Label function should take a levels.Level
enum instead of a raw string to avoid bad usage of the function.
The subfinder usage of gologger should be fixed in https://github.com/projectdiscovery/subfinder/pull/848
Hello there!
I'm encountering a difficulty related to logging in subfinder, which seems to be connected to how gologger handles label and log level. In the piece of code provided below, it seems that whenever an event that includes a label value is logged, this value gets converted to log level during formatting. Is there a specific reasoning behind this design decision?
To illustrate, when I operate subfinder with verbose log level configuration, I encounter numerous logs with a log level that my external logging system cannot process.
https://github.com/projectdiscovery/gologger/blob/1fc5289842cc77b4c81dfef7b775cf3b25f97cdf/formatter/json.go#L25