forked from golang/glog
-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Multi-line strings are now shown as fieldName>>> <<< and "| " is used as separator between message and values. This is shorter: I1119 13:18:00.210970 78836 structured_logging.go:58] using InfoS | someData={Name:hello Data:world internal:0} I1119 13:18:00.210988 78836 structured_logging.go:59] using InfoS | longData>>> {Name:long Data:Multiple lines with quite a bit of text. internal:0} <<< I1119 13:18:00.211009 78836 structured_logging.go:60] using InfoS with the message across multiple lines | int=1 stringData>>> long: Multiple lines with quite a bit of text. <<< str="another value" I1119 13:18:00.211032 78836 structured_logging.go:65] using InfoS | logData>>> {Name:log output from some program Data:I0000 12:00:00.000000 123456 main.go:42] Starting E0000 12:00:01.000000 123456 main.go:43] Failed for some reason internal:0} <<< I1119 13:18:00.211055 78836 structured_logging.go:66] using InfoS | boolean=true int=1 float=0.1 I1119 13:18:00.211068 78836 structured_logging.go:71] Did something | item="foobar" I1119 13:18:00.211079 78836 structured_logging.go:73] This is a full sentence. item="foobar"
- Loading branch information
Showing
2 changed files
with
19 additions
and
19 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