Skip to content

Commit

Permalink
Merge pull request #6911 from k8s-infra-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…6908-to-release-1.2

[release-1.2] 📖 mention json register import for --logging-format=json
  • Loading branch information
k8s-ci-robot committed Jul 13, 2022
2 parents a55fecd + edfb602 commit 71f5bd9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/book/src/developer/providers/v1.1-to-v1.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ NOTES:
<summary>View <code>main.go</code> diff</summary>

```diff
import (
...
+ "k8s.io/component-base/logs"
+ _ "k8s.io/component-base/logs/json/register"
)
var (
...
+ logOptions = logs.NewOptions()
Expand Down

0 comments on commit 71f5bd9

Please sign in to comment.