Added logging logic and made the configuration file loadable when hosted in apacher server