public static class DockerClient.LogsParam extends Object
DockerClient.logs(String, LogsParam...)| Modifier and Type | Method and Description |
|---|---|
static DockerClient.LogsParam |
create(String name,
String value)
Create a custom parameter.
|
static DockerClient.LogsParam |
follow()
Return stream.
|
static DockerClient.LogsParam |
follow(boolean follow)
Return stream.
|
String |
name()
Parameter name.
|
static DockerClient.LogsParam |
since(Integer timestamp)
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 |
tail(Integer lines)
Output specified number of lines at the end of logs.
|
static DockerClient.LogsParam |
timestamps()
Print timestamp for every log line.
|
static DockerClient.LogsParam |
timestamps(boolean timestamps)
Print timestamp for every log line.
|
String |
value()
Parameter value.
|
public String name()
public String value()
public static DockerClient.LogsParam follow()
public static DockerClient.LogsParam follow(boolean follow)
follow - Whether to return stream.public static DockerClient.LogsParam stdout()
public static DockerClient.LogsParam stdout(boolean stdout)
stdout - Whether to show stdout log.public static DockerClient.LogsParam stderr()
public static DockerClient.LogsParam stderr(boolean stderr)
stderr - Whether to show stderr log.public static DockerClient.LogsParam since(Integer timestamp)
timestamp - Only output entries since timestamp.public static DockerClient.LogsParam timestamps()
public static DockerClient.LogsParam timestamps(boolean timestamps)
timestamps - Whether to print timestamp for every log line.public static DockerClient.LogsParam tail(Integer lines)
lines - Number of lines to output at the end of logs.public static DockerClient.LogsParam create(String name, String value)
name - custom namevalue - custom valueCopyright © 2017. All rights reserved.