aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/Xe/ln/formatter.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/Xe/ln/formatter.go')
-rw-r--r--vendor/github.com/Xe/ln/formatter.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/vendor/github.com/Xe/ln/formatter.go b/vendor/github.com/Xe/ln/formatter.go
index ecd4743..70313fc 100644
--- a/vendor/github.com/Xe/ln/formatter.go
+++ b/vendor/github.com/Xe/ln/formatter.go
@@ -2,6 +2,7 @@ package ln
import (
"bytes"
+ "context"
"fmt"
"time"
)
@@ -13,7 +14,7 @@ var (
// Formatter defines the formatting of events
type Formatter interface {
- Format(Event) ([]byte, error)
+ Format(ctx context.Context, e Event) ([]byte, error)
}
// DefaultFormatter is the default way in which to format events
@@ -36,7 +37,7 @@ func NewTextFormatter() Formatter {
}
// Format implements the Formatter interface
-func (t *TextFormatter) Format(e Event) ([]byte, error) {
+func (t *TextFormatter) Format(_ context.Context, e Event) ([]byte, error) {
var writer bytes.Buffer
writer.WriteString("time=\"")