Package org.mandas.docker.client
Class DockerClient.LogsParam
java.lang.Object
org.mandas.docker.client.DockerClient.Param
org.mandas.docker.client.DockerClient.LogsParam
- Enclosing interface:
- DockerClient
Parameters for
DockerClient.logs(String, LogsParam...)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DockerClient.LogsParam
Create a custom parameter.static DockerClient.LogsParam
follow()
Return stream.static DockerClient.LogsParam
follow
(boolean follow) Return stream.static DockerClient.LogsParam
Filter logs and only output entries since given Unix timestamp.static DockerClient.LogsParam
stderr()
Show stderr log.static DockerClient.LogsParam
stderr
(boolean stderr) Show stderr log.static DockerClient.LogsParam
stdout()
Show stdout log.static DockerClient.LogsParam
stdout
(boolean stdout) Show stdout log.static DockerClient.LogsParam
Output specified number of lines at the end of logs.static DockerClient.LogsParam
Print timestamp for every log line.static DockerClient.LogsParam
timestamps
(boolean timestamps) Print timestamp for every log line.Methods inherited from class org.mandas.docker.client.DockerClient.Param
equals, hashCode, name, value
-
Constructor Details
-
LogsParam
-
-
Method Details
-
follow
Return stream.- Returns:
- LogsParam
-
follow
Return stream. Default false.- Parameters:
follow
- Whether to return stream.- Returns:
- LogsParam
-
stdout
Show stdout log.- Returns:
- LogsParam
-
stdout
Show stdout log. Default false.- Parameters:
stdout
- Whether to show stdout log.- Returns:
- LogsParam
-
stderr
Show stderr log.- Returns:
- LogsParam
-
stderr
Show stderr log. Default false.- Parameters:
stderr
- Whether to show stderr log.- Returns:
- LogsParam
-
since
Filter logs and only output entries since given Unix timestamp. Only available in Docker API >= 1.19.- Parameters:
timestamp
- Only output entries since timestamp.- Returns:
- LogsParam
-
timestamps
Print timestamp for every log line.- Returns:
- LogsParam
-
timestamps
Print timestamp for every log line. Default false.- Parameters:
timestamps
- Whether to print timestamp for every log line.- Returns:
- LogsParam
-
tail
Output specified number of lines at the end of logs.- Parameters:
lines
- Number of lines to output at the end of logs.- Returns:
- LogsParam
-
create
Create a custom parameter.- Parameters:
name
- custom namevalue
- custom value- Returns:
- LogsParam
-