networknt / json-schema-validator

A fast Java JSON schema validator that supports draft V4, V6, V7, V2019-09 and V2020-12
Apache License 2.0
800 stars 320 forks source link

Add an option to toggle debug message #1035

Closed thisisfel1x closed 1 month ago

thisisfel1x commented 2 months ago

Our console is currently being spammed with the debug message from the BaseJsonValidator. It would be great if you could set a boolean to turn off this message, as we log at debug level ourselves

stevehu commented 2 months ago

I assume you set the logging level at the root logger. So all packages are logging at the same level. I recommend adding custom loggers to set the logging level at the package level. Then you can set debug on your code.