Logging into different files based on some condition
问题 We have an application. In which we have a condition.Based on the condition, if it is true then we will write some log messages to one file else we will log the messages to another file. And logging should be happened based on the condition and not based on log level. How it is possible in dropwizard using yaml file? 回答1: This is supported out of the box. Here is my example: server: rootPath: /api/* requestLog: appenders: [] applicationConnectors: - type: http port: 9085 logging: level: INFO