Dynamically adjusting logging levels