Quantcast
Channel: SCN : Discussion List - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 3131

neo set-log-level for a whole package?

$
0
0

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.


Viewing all articles
Browse latest Browse all 3131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>