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
* add --input-format option that allows specifying message input format, and add zap-json input format support
* update readme
* add colorXXX functions and remove TimestampColor and CallerColor template constants, update template accordingly
* change --input-format to --formatter
`--exclude-container`, `-E` | `[]` | Container name to exclude when multiple containers in pod. (regular expression)
83
83
`--exclude-pod` | `[]` | Pod name to exclude. (regular expression)
84
84
`--field-selector` | | Selector (field query) to filter on. If present, default to ".*" for the pod-query.
85
+
`--formatter`, `-F` | `default` | Specify formatter template (transformation from a specific log format to human-friendly output). Currently support: [default, zap-json]
@@ -389,6 +432,7 @@ func (o *options) AddFlags(fs *pflag.FlagSet) {
389
432
fs.StringSliceVarP(&o.namespaces, "namespace", "n", o.namespaces, "Kubernetes namespace to use. Default to namespace configured in kubernetes context. To specify multiple namespaces, repeat this or set comma-separated value.")
390
433
fs.IntVar(&o.maxLogRequests, "max-log-requests", o.maxLogRequests, "Maximum number of concurrent logs to request. Defaults to 50, but 5 when specifying --no-follow")
fs.StringVarP(&o.formatter, "formatter", "F", o.formatter, "Specify formatter template (transformation from a specific log format to human-friendly output). Currently support: [default, zap-json]")
fs.StringVarP(&o.selector, "selector", "l", o.selector, "Selector (label query) to filter on. If present, default to \".*\" for the pod-query.")
394
438
fs.StringVar(&o.fieldSelector, "field-selector", o.fieldSelector, "Selector (field query) to filter on. If present, default to \".*\" for the pod-query.")
0 commit comments