added logging to ../logs/application.log