Hi,
after I analyzed an error in a Java application I have changed multiple loggers to debug. Now I want to go back to our usual production settings and reset what I did before.
According to documentation I can do
neo set-log-level --account myaccount --application demo --user p1234567890 --host hanatrial.ondemand.com --loggers com.acme.foo,com.acme.bar --level INFO
This works fine if e. g. com.acme.foo is a logger. But what I can't achieve seemingly through neo command line tool is to reset all loggers in com.acme to error and then only set a few to other levels. I'd like to have a batch file like this:
REM reset all application loggers to ERROR level
neo set-log-level --loggers com.acme --level ERROR server.properties
REM set some application loggers to other levels
neo set-log-level --loggers com.acme.foo --level INFO server.properties neo set-log-level --loggers com.acme.bar --level WARN server.properties
This is about productive installations. Attaching to these installations with Eclipse is not really an option. I'd like to automate this as far as possible.
I'd appreciate any ideas on how I could achieve this with the neo command line tool.
Regards,
Christian.