You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-1Lines changed: 9 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -141,7 +141,15 @@ Logs are following the general guidelines:
141
141
-`logger.Error()` describe only those errors that are not returned in the result of the reconciliation. If error is occurred there should be only one error message.
142
142
-`logger.V(1).Info()` debug level logs to give information about every change or event caused by the resource as well as every update of the resource.
143
143
144
-
The `--zap-devel` argument will enable debug level logs for the output. Otherwise, all `V()` logs are ignored.
144
+
There are two flags to control logging output
145
+
-`--log-mode=[development|<any-other-value>]` will enable debug level logs for the output.
146
+
The debug mode is the most verbose.
147
+
-`--log-level` controls the level of displayed logs. Defaults to the most verbose in the `development` mode.
148
+
In any other modes it can take numerical values form `-1` (Debug level) to `4` (Nothing).
149
+
It is possible to specify other values, but hey will have no effect (e.g. `4` will do the same as `128`)
150
+
151
+
You can find more [here](https://pkg.go.dev/github.com/go-logr/zapr#section-readme).
152
+
145
153
146
154
### Common metadata
147
155
Not exhaustive list of metadata for DNSRecord controller:
flag.StringVar(&clusterSecretNamespace, clusterSecretNamespaceKey.Flag(), DefaultClusterSecretNamespace, "The Namespace to look for cluster secrets.")
138
147
flag.StringVar(&clusterSecretLabel, clusterSecretLabelKey.Flag(), DefaultClusterSecretLabel, "The label that identifies a Secret resource as a cluster secret.")
139
148
flag.StringVar(&watchNamespaces, watchNamespacesKey.Flag(), "", "Comma separated list of default namespaces.")
flag.Var(newDelegationRoleValue(controller.DelegationRolePrimary, &delegationRole), delegationRoleKey.Flag(), "The delegation role for this controller. Must be one of 'primary'(default), or 'secondary'")
142
153
143
-
flag.Var(&group, groupKey.Flag(), "Set Group for dns-operater")
154
+
flag.Var(&group, groupKey.Flag(), "Set Group for dns-operator")
0 commit comments