Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ewilliams0305 authored Nov 6, 2023
1 parent dad7e40 commit 022881a
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,21 @@ can send data to multiple sinks or a single sink.

### Logger

### Writer
### Sink Writers
Creating custom sink writers compatible with golog is as simple as
implementing the `SinkWriter` interface.

```go

```

```go
type FmtPrinter struct {
}

func (f *FmtPrinter) WriteTo(message golog.LogEvent) error {
_, e := fmt.Println(colorizeLevel(&message), RenderMessage(&message))
return e
}
```

0 comments on commit 022881a

Please sign in to comment.