View Logs

Page last updated:

Page last updated:

Cloud Foundry treats logs as streams of time-ordered events aggregated from the output streams of all your app and Cloud Foundry components, providing a single channel for all of the events.

View information about your running app using one of the logging commands, cf logs:

$ cf logs my-nodejs-app
Connected, tailing logs for app my-nodejs-app in org MyOrg / space MySpace as user@mydomain.com...

2016-03-30T16:37:06.39+0200 [App/0]      OUT GET / 200 1.756 ms - 212
2016-03-30T16:37:06.39+0200 [RTR/1]      OUT my-random-hostname.scapp.io - [30/03/2016:14:37:06 +0000] "GET / HTTP/1.1" 200 0 212 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36" 195.65.130.2:61671 x_forwarded_for:"-" x_forwarded_proto:"http" vcap_request_id:f1ac25ce-2ca5-4538-59c5-83d58de55766 response_time:0.005294073 app_id:c98d5025-1bc9-46aa-8bba-51f55f7f2599

Visit your application in the browser, to see log messages being generated.

Press Ctrl+C to stop streaming the logs.

You can use

$ cf logs my-nodejs-app --recent

to get the most recent logs.

I’ve learned how to see my logs
View the source for this page in GitHub