Skip to content

How logging works

Lisa Cho edited this page Nov 2, 2017 · 4 revisions

Tee'd output

The bash function tee_output_to_sys_log_and_file here takes STDOUT and STDERR for the bash script and outputs to log files in /var/vcap/sys/log/cloud_controller. For example, our CC startup script [here] (https://github.com/cloudfoundry/capi-release/blob/develop/jobs/cloud_controller_ng/templates/cloud_controller_api_ctl.erb#L45) writes logs to cloud_controller_ng_ctl.log and cloud_controller_ng_ctl.err.log using this tee function.

Steno

Logger

Clone this wiki locally