jiaqi / jmxterm

Interactive command line JMX client
http://docs.cyclopsgroup.org/jmxterm
Apache License 2.0
519 stars 155 forks source link

Is there is any way to switch off debug log statements? #50

Open shshankar1 opened 6 years ago

shshankar1 commented 6 years ago

From shell script I am invoking jmxterm command like below: java -cp $component_home/$component_name-$buildVersion.jar org.cyclopsgroup.jmxterm.boot.CliMain --url "$jmxURL" -n -input $tmpfile

But it generates set of debug logs which I don't want to give to end user. Is there any way to switch off all log level except ERROR?

Welcome to JMX terminal. Type "help" for available commands.

domain is set to com.anz.markets.efx.client.stp

bean is set to com.anz.markets.efx.client.stp:name=ClientStpGridPublisherJMXEndpoint

calling operation reprocessFailedEvents of mbean com.anz.markets.efx.client.stp:name=ClientStpGridPublisherJMXEndpoint

operation returns:

15:12:08.453 [main] DEBUG org.apache.commons.beanutils.converters.BooleanConverter - Setting default value: false 15:12:08.458 [main] DEBUG org.apache.commons.beanutils.converters.BooleanConverter - Converting 'Boolean' value 'false' to type 'Boolean' 15:12:08.458 [main] DEBUG org.apache.commons.beanutils.converters.BooleanConverter - No conversion required, value is already a Boolean