Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tianxiaoliang authored Sep 16, 2020
1 parent 2d2d531 commit e8de3f4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,12 @@ Create logger with multiple sinker
seclog.Init(seclog.Config{
LoggerLevel: "DEBUG",
LoggerFile: "test.log",
EnableRsyslog: false,
LogFormatText: false,
Writers: []string{"file", "stdout"},
})

logger := seclog.NewLogger("example")
```
Run log rotate
```go
rotate.RunLogRotate("test.log", &rotate.RotateConfig{}, logger)
```

Custom your own sinker
```go
Expand All @@ -53,4 +48,4 @@ See [Examples](examples)
Change log level on-fly
```go
l.SetLogLevel(lager.ERROR)
```
```

0 comments on commit e8de3f4

Please sign in to comment.