Record environmental data in log file