Skip to content

Commit

Permalink
chore: remove repeat doc code line and update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Jun 14, 2022
1 parent a59492b commit 82e63c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -580,10 +580,11 @@ Use `handler.Builder` to easily and quickly create Handler instances.
WithLogfile(testFile).
WithLogLevels(slog.NormalLevels).
WithBuffSize(1024*8).
WithLogLevels(slog.NormalLevels).
WithBuffMode(handler.BuffModeBite).
WithRotateTime(rotatefile.Every30Min).
WithCompress(true).
Build()

l := slog.NewWithHandlers(h)
```

Expand Down
3 changes: 2 additions & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -588,8 +588,9 @@ type Config struct {
WithLogfile(testFile).
WithLogLevels(slog.NormalLevels).
WithBuffSize(1024*8).
WithLogLevels(slog.NormalLevels).
WithBuffMode(handler.BuffModeBite).
WithRotateTime(rotatefile.Every30Min).
WithCompress(true).
Build()

l := slog.NewWithHandlers(h)
Expand Down

0 comments on commit 82e63c9

Please sign in to comment.