Adds environment to log