better logging level management