Skip to content

Commit

Permalink
Merge pull request moby#31500 from dperny/fix-service-logs-cli
Browse files Browse the repository at this point in the history
Add tail and since to service logs
  • Loading branch information
vdemeester committed Mar 14, 2017
2 parents 5ad1ceb + 7ce9625 commit 7ce0cb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/service/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func newLogsCommand(dockerCli *command.DockerCli) *cobra.Command {
flags.BoolVar(&opts.noTrunc, "no-trunc", false, "Do not truncate output")
flags.BoolVar(&opts.noTaskIDs, "no-task-ids", false, "Do not include task IDs")
flags.BoolVarP(&opts.follow, "follow", "f", false, "Follow log output")
flags.StringVar(&opts.since, "since", "", "Show logs since timestamp")
flags.StringVar(&opts.since, "since", "", "Show logs since timestamp (e.g. 2013-01-02T13:23:37) or relative (e.g. 42m for 42 minutes)")
flags.BoolVarP(&opts.timestamps, "timestamps", "t", false, "Show timestamps")
flags.StringVar(&opts.tail, "tail", "all", "Number of lines to show from the end of the logs")
return cmd
Expand Down

0 comments on commit 7ce0cb0

Please sign in to comment.