Skip to content

Commit

Permalink
added sinceTime to logOptions interface
Browse files Browse the repository at this point in the history
  • Loading branch information
UltraSive committed May 4, 2024
1 parent b456bfc commit ab16a24
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ export interface LogOptions {
* If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.
*/
timestamps?: boolean;

/**
* A time in RFC3339 format to select logs since this timestamp.
* If this value precedes the time a pod was started, only logs since the pod start will be returned.
* If this value is in the future, no logs will be returned.
* Only one of sinceSeconds or sinceTime may be specified.
*/
sinceTime?: string;
}

export class Log {
Expand Down

0 comments on commit ab16a24

Please sign in to comment.