Skip to content

Commit

Permalink
more docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sohlich committed Dec 19, 2017
1 parent fd9a39c commit bd39a99
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,18 @@ Elasticsearch version | Elastic version -| Package URL
2.x | 3.0 | [`gopkg.in/sohlich/elogrus.v1`](http://gopkg.in/sohlich/elogrus.v1)


## Usage
## Changelog

v2.1 - Added support for async hook


## Import

```
go get gopkg.in/sohlich/elogrus.v2
```


## Usage

```go
package main
Expand Down Expand Up @@ -42,3 +47,11 @@ func main() {
}).Error("Hello world!")
}
```

### Asynchronous hook

```go
...
elogrus.NewAsyncElasticHook(client, "localhost", logrus.DebugLevel, "mylog")
...
```

0 comments on commit bd39a99

Please sign in to comment.