禁用 dropwizard 对特定资源的内部日志记录
Disable dropwizard's internal logging for a particular resource
我想在关键信息传递给特定资源时禁用日志记录(URL)。
您可以在 .yml 文件中按 class 设置日志记录级别。例如,以下内容:
# Logging settings.
logging:
# The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, TRACE, or ALL.
level: INFO
# Logger-specific levels.
loggers:
# Overrides the levels of certain packages or files.
"com.my.resources.User": OFF
我想在关键信息传递给特定资源时禁用日志记录(URL)。
您可以在 .yml 文件中按 class 设置日志记录级别。例如,以下内容:
# Logging settings.
logging:
# The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, TRACE, or ALL.
level: INFO
# Logger-specific levels.
loggers:
# Overrides the levels of certain packages or files.
"com.my.resources.User": OFF