Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jul 5, 2023. It is now read-only.
This repository was archived by the owner on Jul 5, 2023. It is now read-only.

cloud.gov logging #197

Copy link
Copy link
@pburkholder

Description

@pburkholder
Issue body actions
  • 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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.