Skip to content

Commit

Permalink
update format field description
Browse files Browse the repository at this point in the history
Signed-off-by: Colton McCurdy <cmccurdy@fastly.com>
  • Loading branch information
mccurdyc authored and pteichman committed May 18, 2020
1 parent acfa110 commit 3678154
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions pkg/app/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1193,7 +1193,8 @@ COMMANDS
--dataset=DATASET The Honeycomb Dataset you want to log to
--auth-token=AUTH-TOKEN The Write Key from the Account page of your
Honeycomb account
--format=FORMAT Apache style log formatting
--format=FORMAT Apache style log formatting. Your log must
produce valid JSON that Honeycomb can ingest
--format-version=FORMAT-VERSION
The version of the custom logging format used
for the configured endpoint. Can be either 2
Expand Down Expand Up @@ -1227,7 +1228,8 @@ COMMANDS
--version=VERSION Number of service version
-n, --name=NAME The name of the Honeycomb logging object
--new-name=NEW-NAME New name of the Honeycomb logging object
--format=FORMAT Apache style log formatting
--format=FORMAT Apache style log formatting. Your log must
produce valid JSON that Honeycomb can ingest
--format-version=FORMAT-VERSION
The version of the custom logging format used
for the configured endpoint. Can be either 2
Expand Down
2 changes: 1 addition & 1 deletion pkg/logging/honeycomb/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func NewCreateCommand(parent common.Registerer, globals *config.Data) *CreateCom
c.CmdClause.Flag("dataset", "The Honeycomb Dataset you want to log to").Required().StringVar(c.Input.Dataset)
c.CmdClause.Flag("auth-token", "The Write Key from the Account page of your Honeycomb account").Required().StringVar(c.Input.Token)

c.CmdClause.Flag("format", "Apache style log formatting").StringVar(c.Input.Format)
c.CmdClause.Flag("format", "Apache style log formatting. Your log must produce valid JSON that Honeycomb can ingest").StringVar(c.Input.Format)
c.CmdClause.Flag("format-version", "The version of the custom logging format used for the configured endpoint. Can be either 2 (default) or 1").UintVar(c.Input.FormatVersion)
c.CmdClause.Flag("response-condition", "The name of an existing condition in the configured endpoint, or leave blank to always execute").StringVar(c.Input.ResponseCondition)
c.CmdClause.Flag("placement", "Where in the generated VCL the logging call should be placed, overriding any format_version default. Can be none or waf_debug").StringVar(c.Input.Placement)
Expand Down
2 changes: 1 addition & 1 deletion pkg/logging/honeycomb/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func NewUpdateCommand(parent common.Registerer, globals *config.Data) *UpdateCom
c.CmdClause.Flag("name", "The name of the Honeycomb logging object").Short('n').Required().StringVar(&c.Input.Name)

c.CmdClause.Flag("new-name", "New name of the Honeycomb logging object").Action(c.NewName.Set).StringVar(&c.NewName.Value)
c.CmdClause.Flag("format", "Apache style log formatting").Action(c.Format.Set).StringVar(&c.Format.Value)
c.CmdClause.Flag("format", "Apache style log formatting. Your log must produce valid JSON that Honeycomb can ingest").Action(c.Format.Set).StringVar(&c.Format.Value)
c.CmdClause.Flag("format-version", "The version of the custom logging format used for the configured endpoint. Can be either 2 (default) or 1").Action(c.FormatVersion.Set).UintVar(&c.FormatVersion.Value)
c.CmdClause.Flag("dataset", "The Honeycomb Dataset you want to log to").Action(c.Dataset.Set).StringVar(&c.Dataset.Value)
c.CmdClause.Flag("auth-token", "The Write Key from the Account page of your Honeycomb account").Action(c.Token.Set).StringVar(&c.Token.Value)
Expand Down

0 comments on commit 3678154

Please sign in to comment.