Add a log method, make environment constant lowercase