Skip to content

Commit a800d53

Browse files
committed
Fix formatting for Github
1 parent 5deecb9 commit a800d53

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var log = logging.MustGetLogger("example")
2929
// which is dependent on the log level. Many fields have a custom output
3030
// formatting too, eg. the time returns the hour down to the milli second.
3131
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}`,
3333
)
3434

3535
// Password is just an example type implementing the Redactor interface. Any

example_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func Example() {
1919
// information to the output, including the used log level and the name of
2020
// the function.
2121
var format = MustStringFormatter(
22-
"%{time:15:04:05.000} %{shortfunc} %{level:.1s} %{message}",
22+
`%{time:15:04:05.000} %{shortfunc} %{level:.1s} %{message}`,
2323
)
2424
backend2Formatter := NewBackendFormatter(backend2, format)
2525

examples/example.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var log = logging.MustGetLogger("example")
1212
// which is dependent on the log level. Many fields have a custom output
1313
// formatting too, eg. the time returns the hour down to the milli second.
1414
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}`,
1616
)
1717

1818
// Password is just an example type implementing the Redactor interface. Any

0 commit comments

Comments
 (0)