Skip to content

Prod logging example (Example 2) omits loggers: ~, causes error 500 #365

Description

@cracly
  • Page: Administrator's manual → Maintenance → Logging → "Example 2: Enable high-level logging on production"

  • Version: 2.10 (likely affects other versions too — same text appears at least back to 2.5)

  • Issue: The default prod: config shown just above Example 2 correctly includes loggers: ~ when not using sfAggregateLogger — this matches Symfony's own documented requirement ("If you don't use the sfAggregateLogger, don't forget to specify a null value for the loggers parameter"). But the modified prod: block in Example 2 omits that line. Following the example as written causes AtoM to throw a fatal 500 error: Call to undefined method sfFileLogger::addLogger().

  • Proposed fix: Add loggers: ~ to the Example 2 prod: logger param block, so it reads:

 prod:
   logger:
     class: sfFileLogger
     param:
       level: warning
       file: %SF_LOG_DIR%/qubit_prod.log
+      loggers: ~

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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