I have disabled request access logging using this configuration in Dropwizard:
server:
requestLog:
appenders: []
I want to override it via command line, but I don't know what is correct syntax for empty array. I tried -Ddw.server.requestLog.appenders=[] or -Ddw.server.requestLog.appenders= or -Ddw.server.requestLog.appenders='' but all of them fail with:
* Failed to parse configuration at: server.requestLog.appenders; Unexpected token (VALUE_STRING), expected FIELD_NAME: missing property 'type' that is to contain type id (for class io.dropwizard.logging.AppenderFactory)
at [Source: N/A; line: -1, column: -1] (through reference chain: metrics.Config["server"]->io.dropwizard.server.DefaultServerFactory["requestLog"]->io.dropwizard.request.logging.LogbackAccessRequestLogFactory["appenders"])
What is the correct way to pass an empty array?