Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #77 from iamando/develop
Browse files Browse the repository at this point in the history
feature: update readme on usage build
  • Loading branch information
andostronaut committed May 5, 2023
2 parents 3dc69ac + 119569c commit e0e4790
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ import "github.com/iamando/welog"
Then, create a logger using the GenerateLogger function:

```go
logger := welog.GenerateLogger()
logger := welog.GenerateLoggerBuilder().Build()
```

You can customize the logger by passing it one or more options:
You can customize the logger by chaining one or more options:

```go
logger := welog.GenerateLogger(
welog.WithLogLevel(welog.Info), // By default `Info`
welog.WithLogMode(welog.Colorful), // By default `Basic`
welog.WithLogFile(true), // By default `false`, to give access create and write log file for errors
)
logger := welog.GenerateLoggerBuilder()
.WithLogLevel(welog.Info), // By default `Info`
.WithLogMode(welog.Colorful), // By default `Basic`
.WithLogFile(true), // By default `false`, to give access create and write log file for errors
.Build()
```

## Options
Expand Down

0 comments on commit e0e4790

Please sign in to comment.