In order to make code-level errors visible to operators on cloud.gov, we want pod-dashboard to write CodeIgniter logs to stdout.
Acceptance Criteria
[ ] GIVEN I run the dashboard using docker-compose \
WHEN CodeIgniter logs an error, it's visible in stdout
[ ] GIVEN I run the dashboard in cloud.gov \
WHEN CodeIgniter logs an error, it's visible in logs.fr.cloud.gov
[ ] GIVEN I run the dashboard using php-fpm \
WHEN CodeIgniter logs an error, it's visible in php-fpm logs on the host where the error occurred
Background:
Currently the only logs for CodeIngiter apps in BSP are the Apache/Nginx logs. Logs from the apps themselves, namely, those written from log_message are not kept as the config[log_threshold] is set to 0 (zero) in BSP, and even if it were enabled, it would be written to a local log file. This means you don't get any code-level errors, like:
Most PHP web apps will treat STDOUT as what gets passed to the web server and back to the client, which is why the log_message and write_log functions of CodeIgniter write to a specific path in application/logs.
If we want these logs:
update system/libraries/log.php forlog_message to write to STDOUT, then
User Story
In order to make code-level errors visible to operators on cloud.gov, we want pod-dashboard to write CodeIgniter logs to stdout.
Acceptance Criteria
Background:
Currently the only logs for CodeIngiter apps in BSP are the Apache/Nginx logs. Logs from the apps themselves, namely, those written from
log_message
are not kept as theconfig[log_threshold]
is set to 0 (zero) in BSP, and even if it were enabled, it would be written to a local log file. This means you don't get any code-level errors, like:Most PHP web apps will treat STDOUT as what gets passed to the web server and back to the client, which is why the log_message and write_log functions of CodeIgniter write to a specific path in application/logs.
If we want these logs:
system/libraries/log.php
forlog_message
to write to STDOUT, then