-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Log sink for events #816
Log sink for events #816
Conversation
Can one of the admins verify that this patch is reasonable to test? (reply "ok to test", or if you trust the user, reply "add to whitelist") If this message is too spammy, please complain to ixdy. |
Hi, @mwielgus I inadvertently found this |
|
||
func batchToString(batch *core.EventBatch) string { | ||
var buffer bytes.Buffer | ||
buffer.WriteString(fmt.Sprintf("EventBatch Timestamp: %s\n", batch.Timestamp)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An idea: maybe use text/tabwriter for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only for debugging. No need for aligning.
One suggestion, but otherwise LGTM. Ping me if you decide to use tabwriter. |
Thanks, @mwielgus , shall I join some Heapster refactoring contribution work? Or assign me some task about this? ^_^ |
Sure, any help will be more than welcome. I will try to produce a list of pending tasks Today but if I don't (Christmas is coming) you can start with porting Kafka and Riemann sinks to the new api. |
Thanks so much for letting me join. ^_^ |
cc: @piosz