We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Log Level Constants Order

Quick question on Logging: Can I assume that the Log Level constants are listed (included below) in ascending order in the documentation (https://docs.phalcon.io/en/latest/api/Phalcon_Logger.html)?

It seems that it is but I wanted to make extra sure as I'm just about to implement a log filter based on dev/prod environment configs. Maybe an addition to the docs to clarify.

  1. SPECIAL
  2. CUSTOM
  3. DEBUG
  4. INFO
  5. NOTICE
  6. WARNING
  7. ERROR
  8. ALERT
  9. CRITICAL
  10. EMERGENCE
  11. EMERGENCY


43.9k
Accepted
answer


2.2k

Perfect! Thanks for this. It confirms the ordered priority I has suspected from the docs.