How to gather application logs

How to gather application logs