#2 implements logger for environment component