add ability to set logging callback for each severity or all