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.LogsParamCreate a custom parameter.static DockerClient.LogsParamfollow()Return stream.static DockerClient.LogsParamfollow(boolean follow) Return stream.static DockerClient.LogsParamFilter logs and only output entries since given Unix timestamp.static DockerClient.LogsParamstderr()Show stderr log.static DockerClient.LogsParamstderr(boolean stderr) Show stderr log.static DockerClient.LogsParamstdout()Show stdout log.static DockerClient.LogsParamstdout(boolean stdout) Show stdout log.static DockerClient.LogsParamOutput specified number of lines at the end of logs.static DockerClient.LogsParamPrint timestamp for every log line.static DockerClient.LogsParamtimestamps(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
-