my config.yml file looks something like this(logging section):
logging:
level: INFO
loggers:
com.company.package: ERROR
appenders:
- type: console
threshold: DEBUG
This sets all logging on the com.company.package to ERROR. I want to override this at runtime for dev environment, to log debug level logs too.
I tried doing this using:
curl -k -X POST -d "logger=com.company.package&level=DEBUG" http://localhost:8081/tasks/log-level
This doesn't help. It still only logs out ERROR level logs to console.
Also tried the answer here:
Dropwizard Admin: Change loglevel for all
This doesn't help either.
I am able to get debug logs when I change com.company.package to DEBUG, but I do not want to do it that way.