Configuriation hierarchy, generalize logging

Hi all, could you consider attached commits please?  I'll be able to fix if something goes wrong.  Any comment is welcomed.  Thanks!

Pavel