shell: add basic logging functions
- shell command line argument to set log level (doing it in session setup is not enough because by the time setup is imported, all config-objects have already been created and the log was not applied)
- helper to
set_log_level
on the shell