File tree 3 files changed +3
-3
lines changed
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ var log = logging.MustGetLogger("example")
29
29
// which is dependent on the log level. Many fields have a custom output
30
30
// formatting too, eg. the time returns the hour down to the milli second.
31
31
var format = logging.MustStringFormatter (
32
- " % {color}% {time:15:04:05.000} % {shortfunc} ▶ % {level:.4s} % {id:03x}% {color:reset} % {message}" ,
32
+ ` %{color}%{time:15:04:05.000} %{shortfunc} ▶ %{level:.4s} %{id:03x}%{color:reset} %{message}` ,
33
33
)
34
34
35
35
// Password is just an example type implementing the Redactor interface. Any
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ func Example() {
19
19
// information to the output, including the used log level and the name of
20
20
// the function.
21
21
var format = MustStringFormatter (
22
- " %{time:15:04:05.000} %{shortfunc} %{level:.1s} %{message}" ,
22
+ ` %{time:15:04:05.000} %{shortfunc} %{level:.1s} %{message}` ,
23
23
)
24
24
backend2Formatter := NewBackendFormatter (backend2 , format )
25
25
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ var log = logging.MustGetLogger("example")
12
12
// which is dependent on the log level. Many fields have a custom output
13
13
// formatting too, eg. the time returns the hour down to the milli second.
14
14
var format = logging .MustStringFormatter (
15
- " %{color}%{time:15:04:05.000} %{shortfunc} ▶ %{level:.4s} %{id:03x}%{color:reset} %{message}" ,
15
+ ` %{color}%{time:15:04:05.000} %{shortfunc} ▶ %{level:.4s} %{id:03x}%{color:reset} %{message}` ,
16
16
)
17
17
18
18
// Password is just an example type implementing the Redactor interface. Any
You can’t perform that action at this time.
0 commit comments