Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
seipan authored Jul 30, 2023
1 parent 1f5fbfb commit 2d73210
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,22 @@ func main() {

logger.Debug("test")
logger.Infof("test %s", "info")
}
```

If you do not want to be notified of a particular log level, you can set
```go
func main(){
logger.NoSendDebug()
logger.Debug("test")
logger.NoSendInfo()
logger.Infof("test %s", "info")

logger.SetErrorWebhook(DiscordErrorWebhookURL)
}
```
You can also change the webhook to be notified for each log level
```go
func main(){
logger.SetErrorWebhook(DiscordErrorWebhookURL)
logger.Error("test")
}
```
Expand Down

0 comments on commit 2d73210

Please sign in to comment.