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

Existing handlers #97

Open
scls19fr opened this issue Aug 8, 2018 · 2 comments
Open

Existing handlers #97

scls19fr opened this issue Aug 8, 2018 · 2 comments

Comments

@scls19fr
Copy link

scls19fr commented Aug 8, 2018

Hello,

I noticed in https://www.youtube.com/watch?v=Q0L-at3PyU8 that you are using
CloudWatchLogs.jl as logging handler
Maybe Memento doc should give a non exhaustive list of logging handlers for Memento.
Such a list could be added to https://github.com/invenia/Memento.jl/blob/master/docs/src/man/handlers.md

Kind regard

PS:

@scls19fr
Copy link
Author

scls19fr commented Aug 9, 2018

Python logbook package provides a quite big list of logging handlers
http://logbook.readthedocs.io/en/stable/quickstart.html#handlers
Maybe implementing some handlers could be an interesting exercice for JuliaCon 2018 Hackaton?
See https://discourse.julialang.org/t/recruiting-package-authors-for-juliacon-hackathon-mentoring-guidance/12453

@rofinn
Copy link
Member

rofinn commented Aug 9, 2018

Currently, the handler behaviour is split between handlers (e.g., DefaultHandler, CloudWatchLogs) and custom IO types (e.g., FileRoller, Syslogs.jl). This is largely a hold over from the Lumberjack.jl days. I think the plan is to convert the custom IO types into handlers and perhaps split the DefaultHandler into a ConsoleHandler and StreamHandler.

If you'd like to implement a BulkSMS and Pushover handler the main things to keep in mind are that you'll want to override the getfilters(::Handler) and emit(::Handler, rec::Record) methods. Everything else should just work after that.

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

No branches or pull requests

2 participants