PolyProcessInterface / ppi

2 stars 2 forks source link

Add a verbosity option #68

Open n-peugnet opened 4 years ago

n-peugnet commented 4 years ago

There is a small problem with this option as we have 2 log levels:

So I am not sure yet what would this option do. Also do we really want to keep the STDOUT logger ?

n-peugnet commented 4 years ago

For this, picocli (the module we use to parse cli args) has a cool feature: repeated boolean options which can be used to define the log level with the number of v

E.g. command console log level
ppi warn
ppi -v info
ppi -vv debug
ppi -vvv trace
n-peugnet commented 4 years ago

I think the verbosity option should be used only for the STDOUT appender and two more options should be added for the LOGFILE appender: