Skip to content

Commit

Permalink
Merge pull request #6908 from apricote/book-logs-json-import
Browse files Browse the repository at this point in the history
📖 mention json register import for --logging-format=json
  • Loading branch information
k8s-ci-robot authored Jul 13, 2022
2 parents 273dfe5 + 7d43fd5 commit 5c177bd
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 5c177bd

Please sign in to comment.