Make function to provide extended logs when application works in debug mode.