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
public static class DockerClient.LogsParam extends DockerClient.Param
Parameters forDockerClient.logs(String, LogsParam...)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DockerClient.LogsParamcreate(String name, String value)Create a custom parameter.static DockerClient.LogsParamfollow()Return stream.static DockerClient.LogsParamfollow(boolean follow)Return stream.static DockerClient.LogsParamsince(Integer timestamp)Filter 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.LogsParamtail(Integer lines)Output specified number of lines at the end of logs.static DockerClient.LogsParamtimestamps()Print 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
-
-
-
-
Method Detail
-
follow
public static DockerClient.LogsParam follow()
Return stream.- Returns:
- LogsParam
-
follow
public static DockerClient.LogsParam follow(boolean follow)
Return stream. Default false.- Parameters:
follow- Whether to return stream.- Returns:
- LogsParam
-
stdout
public static DockerClient.LogsParam stdout()
Show stdout log.- Returns:
- LogsParam
-
stdout
public static DockerClient.LogsParam stdout(boolean stdout)
Show stdout log. Default false.- Parameters:
stdout- Whether to show stdout log.- Returns:
- LogsParam
-
stderr
public static DockerClient.LogsParam stderr()
Show stderr log.- Returns:
- LogsParam
-
stderr
public static DockerClient.LogsParam stderr(boolean stderr)
Show stderr log. Default false.- Parameters:
stderr- Whether to show stderr log.- Returns:
- LogsParam
-
since
public static DockerClient.LogsParam since(Integer timestamp)
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
public static DockerClient.LogsParam timestamps()
Print timestamp for every log line.- Returns:
- LogsParam
-
timestamps
public static DockerClient.LogsParam timestamps(boolean timestamps)
Print timestamp for every log line. Default false.- Parameters:
timestamps- Whether to print timestamp for every log line.- Returns:
- LogsParam
-
tail
public static DockerClient.LogsParam tail(Integer lines)
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
public static DockerClient.LogsParam create(String name, String value)
Create a custom parameter.- Parameters:
name- custom namevalue- custom value- Returns:
- LogsParam
-
-