-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #95 from itishrishikesh/slog_json_out
NewClientWithJSONSlogger
- Loading branch information
Showing
4 changed files
with
74 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package main | ||
|
||
import ( | ||
"github.com/techrail/bark/client" | ||
"github.com/techrail/bark/constants" | ||
) | ||
|
||
func main() { | ||
log := client.NewSloggerClientJson(constants.Info) | ||
log.Info("1N09FW - This is an Info message!") | ||
log.Debug("1N09GG - This is an Debug message!") | ||
log.Warn("1N09H5 - This is an Warn message!") | ||
log.Notice("1N09HL - This is an Notice message!") | ||
log.Error("1N09HT - This is an Error message!") | ||
log.Panic("1N09I7 - This is an Panic message!") | ||
log.Alert("1N09IG - This is an Alert message!", false) | ||
log.Default("I#1N09JH - This is an Default message!") | ||
log.Println("D#1N09JR - This is an Print message!") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters