From 2d732105001c0e7642e91f03ef3b0dced264dc45 Mon Sep 17 00:00:00 2001 From: Yamasaki Shotaro <88176012+seipan@users.noreply.github.com> Date: Sun, 30 Jul 2023 15:16:11 +0900 Subject: [PATCH] Update README.md --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index dd6f425..4fb43d8 100644 --- a/README.md +++ b/README.md @@ -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") } ```