You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.
Currently the only logs for CodeIngiter apps in BSP are the Apache/Nginx logs. Logs from the apps themselves, from log_message are not kept as config[log_threshold] is set to 0 (zero) in BSP. This means you don't get any code-level errors, like: ERROR - 2019-10-01 12:21:29 --> Severity: Warning --> fgetcsv() expects parameter 1 to be resource, boolean given /home/vcap/app/htdocs/application/helpers/csv_helper.php 44 ERROR - 2019-10-01 12:21:29 --> Severity: Warning --> Invalid argument supplied for foreach() /home/vcap/app/htdocs/application/helpers/csv_helper.php 48 ERROR - 2019-10-01 12:21:29 --> Severity: Notice --> Undefined variable: row_new /home/vcap/app/htdocs/application/helpers/csv_helper.php 52
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
Logging
log_message
are not kept asconfig[log_threshold]
is set to 0 (zero) in BSP. This means you don't get any code-level errors, like:ERROR - 2019-10-01 12:21:29 --> Severity: Warning --> fgetcsv() expects parameter 1 to be resource, boolean given /home/vcap/app/htdocs/application/helpers/csv_helper.php 44 ERROR - 2019-10-01 12:21:29 --> Severity: Warning --> Invalid argument supplied for foreach() /home/vcap/app/htdocs/application/helpers/csv_helper.php 48 ERROR - 2019-10-01 12:21:29 --> Severity: Notice --> Undefined variable: row_new /home/vcap/app/htdocs/application/helpers/csv_helper.php 52
system/libraries/log.php
forlog_message
to write to STDOUT, thenThe text was updated successfully, but these errors were encountered: