Hi Rakesh,
CF doesn't really store logs, so there is no real command to retrieve them. Instead adoption of a third party log manager (Splunk, LogStash, Paper trail, sumo logic, etc. etc.) is encouraged. Your options are:
- cf logs <app> - gives you a live stream of your apps logs
- cf logs <app> --recent - gives you a snippet of the last bit of log activity, VERY useful when debugging push problems
It IS possible to use the cf files <app> command to obtain an individual instances ephemeral copy of its own emitted logs, but there are many reasons this approach is not encouraged (only a single instance, no way to manage the logs, only available when app is running, lost when application stops, etc. etc.)
Hope that helps,
k