Page last updated:
App Cloud treats logs as streams of time-ordered events aggregated from the output streams of all your app and App Cloud components, providing a single channel for all of the events.
View information about your running app using one of the logging commands,
$ cf logs my-dotnetcore-app Connected, tailing logs for app my-dotnetcore-app in org MyOrg / space MySpace as email@example.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" 188.8.131.52: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.
Ctrl+C to stop streaming the logs.
You can use
$ cf logs my-dotnetcore-app --recent
to get the most recent logs.View the source for this page in GitHub