Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

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.phalconphp.com/en/latest/api/Phalcon%5Logger.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


30.8k
Accepted
answer


1.4k

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