Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

cloud.gov logging #197

Open
pburkholder opened this issue Oct 2, 2019 · 0 comments
Open

cloud.gov logging #197

pburkholder opened this issue Oct 2, 2019 · 0 comments

Comments

@pburkholder
Copy link
Contributor

  • Logging

    • 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:
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant