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 and to syslog. For example, our CC startup script here writes logs to cloud_controller_ng_ctl.log and cloud_controller_ng_ctl.err.log using this tee function.

Steno

The StenoLogger used in most places in cloud controller writes directly to the configured file and also to syslog, where syslogs are stored in /var/log.

Logger

Clone this wiki locally