Logging by environment