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

Allow custom handlers for update logs #306

Open
mileswwatkins opened this issue Jan 25, 2018 · 0 comments
Open

Allow custom handlers for update logs #306

mileswwatkins opened this issue Jan 25, 2018 · 0 comments

Comments

@mileswwatkins
Copy link
Contributor

It'd be nice to have a way for Pupa to execute user-provided functions on the logs of a scrape or import. That is, after completing an update, take the log that had been produced and sent to stdout, and allow the user to do something with its contents.

The specific case that @jamesturk and I were thinking about would be to have an emailing function or Slackbot, that would send us notifications for particular levels of error or warning. But having a more flexible post-update hook could offer several other options, for Open States or other users.

That said, would this be better accomplished by using a custom real-time logging handler, and then using, say, CloudWatch Logs and custom notifications in a service like that?

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

No branches or pull requests

1 participant