Environment variables and logging