如何使用 groovy 配置文件激活 "Logback setup" 调试模式?

How to activate the "Logback setup" debug mode using groovy configuration file?

我想激活 logback 内部 devbug 模式(以便在 logback 设置期间获得更多信息)。

我知道如何在 xml 文件中执行此操作(在配置声明中使用 debug="true")。 我发现可以使用系统 属性 强制标记(但我没有实现)

好的,我在 GafferConfigurator.groovy 中看到了这条评论:
// For now, Groovy/Gaffer configuration DSL does not support "debug" attribute. But in order to keep // the conditional logic identical to that in XML/Joran, we have this empty block.

所以我们可以断定它还没有实现...

在logback.groovy中可以设置级别;默认情况下,它在 logger() 调用中设置为 "ERROR"。