log level dynamically change based on diamond