There is in site-defaults.cfg:
# You can configure log format to pull from logging.ini formats of these names:
# config_opts['build_log_fmt_name'] = "unadorned"
# config_opts['root_log_fmt_name'] = "detailed"
# config_opts['state_log_fmt_name'] = "state"
and there is /etc/mock/logging.ini
So it should work somehow, but I never done it.
Yes, this work for logging from mock/plugins itself.
I mean, how to log from site-defaults.cfg / ~/.mock/config.cfg and so on?
As I see, this files readed in mock.py like
642 config_opts = util.load_config(config_path, options.chroot, uidManager,
and *after* that, there is
656 # configure logging
657 setup_logging(config_path, config_opts, options)
But before this time there is logging.WARNING default level.
So, currently I can log from site-defaults.cfg, but just with WARNING level.
and I can't access to options.verbose in site-defaults.cfg-s to manually call
logger.setLevel where there is `-q/-v` options passed.
The other option can be:
I have one highschool intern who is working on that. Despite the fact that is quite
slow, it should be done this week.
It is interesting/useful too! But a bit like 'hammer' in my case, when I want to
quickly debug/access certain variable/data.