How to create a `log` to record the app's usage?

I have created a app, and now I want to create a log which can records the usage of this app;
Or use the ‘Logs’ (in below picture) to do this, so shall I get some advice for this?