Global Config Value for Log Level

I have dev and prod environments, I want to set different default log levels for each of them. I am aware that i can change default_log_level variable in But I am looking for a solution, where log level is taken from site_config. I know for a reason, that unless app is up, site_config is not loaded. But initializing logger after site_config is loaded is my approach for this problem and setting default_log_level. So in that way, I can set log levels based on my working environment inside site_config.json file