Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Add the ability to listen to streamers #13

Open
benjivesterby opened this issue Apr 25, 2020 · 0 comments
Open

Add the ability to listen to streamers #13

benjivesterby opened this issue Apr 25, 2020 · 0 comments
Labels
enhancement New feature or request
Projects

Comments

@benjivesterby
Copy link
Member

Define an interface which looks similar to this

type streamers interface {
    Events() <-chan interface{}
}

That can be registered into the alog system. There should be the ability to have 0-N of these registered and alog should pull events from them and log them to the appropriate destinations based on their interface types.

Internal interface types for it to recognize would be initially error and stringer which would go to the Error and Print methods of alog respectively. This should be extensible in the future to be able to add additional error types. This registration system should be able to use the same c method types which accept interface types.

@benjivesterby benjivesterby added the enhancement New feature or request label Apr 25, 2020
@benjivesterby benjivesterby added this to Backlog in Open Source Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
No open projects
Open Source
  
Backlog
Development

No branches or pull requests

1 participant