Files
th/2014_09_26_Goldmann_Docker/demos/05-configuration/augeas.cmd
2014-09-30 11:12:22 +02:00

11 lines
551 B
Batchfile

set /augeas/load/Xml/lens Xml.lns
set /augeas/load/Xml/incl[2] /opt/wildfly/standalone/configuration/standalone.xml
load
defvar subsystem "/files/opt/wildfly/standalone/configuration/standalone.xml/server/profile/subsystem[#attribute/xmlns='urn:jboss:domain:logging:2.0']"
set $subsystem/console-handler/level/#attribute/name "DEBUG"
set $subsystem/root-logger/level/#attribute/name "DEBUG"
set $subsystem/logger[last()+1]/#attribute/category "pl.goldmann.example"
set $subsystem/logger[last()]/level/#attribute/name "TRACE"
save
print /augeas//error