这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/deployment/logs.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Log Management

```
logs <app> [-h] [-t|--tail] [-n|--num num] [-q|--quiet] [-p|--ps process] # Display recent log output
logs <app> [-h|--help] [-t|--tail] [-n|--num num] [-q|--quiet] [-p|--ps process] # Display recent log output
logs:failed [--all|<app>] # Shows the last failed deploy logs
logs:report [<app>] [<flag>] # Displays a logs report for one or more apps
logs:set [--global|<app>] <key> <value> # Set or clear a logs property for an app
Expand Down
4 changes: 2 additions & 2 deletions plugins/logs/src/commands/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Manage log integration for an app
Additional commands:`

helpContent = `
logs [-h] [-t|--tail] [-n|--num num] [-q|--quiet] [-p|--ps process] <app>, Display recent log output
logs [-h|--help] [-t|--tail] [-n|--num num] [-q|--quiet] [-p|--ps process] <app>, Display recent log output
logs:failed [--all|<app>], Shows the last failed deploy logs
logs:report [<app>] [<flag>], Displays a logs report for one or more apps
logs:set [--global|<app>] <key> <value>, Set or clear a logs property for an app
Expand All @@ -40,7 +40,7 @@ func main() {
switch cmd {
case "logs":
args := flag.NewFlagSet("logs", flag.ExitOnError)
help := args.Bool("h", false, "-h: print help for the command")
help := args.BoolP("help", "h", false, "print help for the command")
num := args.Int64P("num", "n", 100, "the number of lines to display")
ps := args.StringP("ps", "p", "", "only display logs from the given process")
tail := args.BoolP("tail", "t", false, "continually stream logs")
Expand Down