Collecting application logs