Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add emergency, alert, notice to supported levels (PSR3) #187

Closed
wants to merge 2 commits into from

Conversation

vdechenaux
Copy link
Contributor

Hello,

This PR added a throw of a Psr exception, #131 , but some standards levels are not supported...

The priority are based on https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md#11-basics which redirects to https://tools.ietf.org/html/rfc5424#section-6.2.1 ( end of 6.2.1 )

@rokob
Copy link
Contributor

rokob commented May 30, 2017

The reason we have the specific levels that we do have is due to the Rollbar backend spec at https://rollbar.com/docs/api/items_post/

// Optional: level
// The severity level. One of: "critical", "error", "warning", "info", "debug"

This change looks fine to me, but it may require a backend change for handling these "unknown" levels.

@brianr
Copy link
Member

brianr commented May 30, 2017

@rokob Could we map the unknown levels to the known ones? i.e. map 'emergency' to 'critical'

@vdechenaux
Copy link
Contributor Author

Ok, maybe this #193 could help?

@ArturMoczulski
Copy link
Contributor

Thx @vdechenaux for submitting a great PR with mapped PSR3 levels to Rollbar levels. This is going to move forward as #140 and pulled into other Level-related work I'm doing right now.

@rokob
Copy link
Contributor

rokob commented Jun 1, 2017

Closing in favor of #193

@rokob rokob closed this Jun 1, 2017
@vdechenaux vdechenaux deleted the fix-psr3 branch June 2, 2017 07:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants