log_level to attributes