I am able to see the following log lines in /var/log/syslog every 3 mins (which is my Variety preference set). Attached to this comment.
What I was able to figure out from source:
- `VarietyWindow.parse_options` defines a `verbose` parameter which is by default 1.
- Variety `__init__` reads the `verbose` flag and passes to `lib/helpers.set_up_logging`
- `Helpers.set_up_logging` uses `verbose` to set the logging level for the logger instance that obtained from `logging.getLogger()`. Note that only `addHandler` is used which seems to be why log messages also show up in syslog.
Now, if `verbose` could be also supported at `variety.conf` as well such that:
My setup is on GNOME 3.24 and Ubuntu 17.04.
I am able to see the following log lines in /var/log/syslog every 3 mins (which is my Variety preference set). Attached to this comment.
What I was able to figure out from source:
- `VarietyWindow. parse_options` defines a `verbose` parameter which is by default 1. set_up_ logging` set_up_ logging` uses `verbose` to set the logging level for the logger instance that obtained from `logging. getLogger( )`. Note that only `addHandler` is used which seems to be why log messages also show up in syslog.
- Variety `__init__` reads the `verbose` flag and passes to `lib/helpers.
- `Helpers.
Now, if `verbose` could be also supported at `variety.conf` as well such that:
- verbose == 0 > ERROR
- verbose == 1 > INFO
- verbose == 2 > DEBUG
Then it might be a lot clearer log for tracing and trouble shooting as well. Default
is now 1 with INFO level.
Thanks.