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
feat: Keep track of seen containers to set "Since" time more accurately
Before, logs where always truncated to latest container start. To get rid
of this restriction containers are kept track of, not just if their
active, but ever (as long as they fit in cache and are not removed) Log
streams end when containers terminate and if the container starts again
using the --since time will print logs that were already printed on
earlier starts of the container. If the container has been seen earlier
logs will be printed from latest start/finish time. Unless --since is
later than the start time which is unlikely unless retrying a failed log
stream is done (which is not merged yet).
Copy file name to clipboardExpand all lines: cmd/tailfincmd/cmd.go
+1-1
Original file line number
Diff line number
Diff line change
@@ -348,7 +348,7 @@ func (o *options) AddFlags(fs *pflag.FlagSet) {
348
348
fs.StringArrayVarP(&o.label, "label", "l", o.label, "Label query to filter on. One `key` or `key=value` per flag instance.")
349
349
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.DurationVarP(&o.since, "since", "s", o.since, "Return logs newer than a relative duration like 5s, 2m, or 3h. The duration is truncated at container start time.")
351
+
fs.DurationVarP(&o.since, "since", "s", o.since, "Return logs newer than a relative duration like 5s, 2m, or 3h.")
352
352
fs.Int64Var(&o.tail, "tail", o.tail, "The number of lines from the end of the logs to show. Defaults to -1, showing all logs.")
353
353
fs.StringVar(&o.template, "template", o.template, "Template to use for log lines, leave empty to use --output flag.")
354
354
fs.StringVarP(&o.templateFile, "template-file", "T", o.templateFile, "Path to template to use for log lines, leave empty to use --output flag. It overrides --template option.")
0 commit comments