Skip to main content

Interface: LogOptions

Defined in: src/log.ts:9

Properties

follow?

optional follow?: boolean

Defined in: src/log.ts:13

Follow the log stream of the pod. Defaults to false.


limitBytes?

optional limitBytes?: number

Defined in: src/log.ts:19

If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit.


pretty?

optional pretty?: boolean

Defined in: src/log.ts:24

If true, then the output is pretty printed.


previous?

optional previous?: boolean

Defined in: src/log.ts:29

Return previous terminated container logs. Defaults to false.


sinceSeconds?

optional sinceSeconds?: number

Defined in: src/log.ts:36

A relative time in seconds before the current time from which to show logs. 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?

optional sinceTime?: string

Defined in: src/log.ts:42

Only return logs after a specific date (RFC3339). Defaults to all logs. Only one of sinceSeconds or sinceTime may be specified.


tailLines?

optional tailLines?: number

Defined in: src/log.ts:48

If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime


timestamps?

optional timestamps?: boolean

Defined in: src/log.ts:53

If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false.