intrigueio / intrigue-core

Discover Your Attack Surface!
https://core.intrigue.io
Other
1.35k stars 262 forks source link

Add log levels #411

Closed duartemateus closed 3 years ago

duartemateus commented 3 years ago

This will allow us to reduce the logging to just fatal logging or all the way up to verbose. Which in turn will reduce the amount of transactions going in to some extent.

Log_levels can take the following forms

verbose debug good error fatal

When turned to "fatal" only fatal logging will be logged, when turned to "error", both "error" and "fatal" will be logged and so on.

Adding anything other than the above will result in nothing being logged.

For the purpose of this I have left the default value to "error" which will allow us to log when something goes wrong and leave all the remaining verbose log out of the way unless needed.

jcran commented 3 years ago

Good work @duartemateus