use environment for log file name.