added APPLICATION_NAME to handle log file names