ContainerGroup.getLogContent 方法

定义

重载

getLogContent(String containerName)

Get the log content for the specified container instance within the container group.

getLogContent(String containerName, int tailLineCount)

Get the log content for the specified container instance within the container group.

getLogContent(String containerName)

Get the log content for the specified container instance within the container group.

public String getLogContent(String containerName)

参数

containerName
String

the container instance name

返回

String

all available log lines

例外

IllegalArgumentException

thrown if parameters fail the validation

getLogContent(String containerName, int tailLineCount)

Get the log content for the specified container instance within the container group.

public String getLogContent(String containerName, int tailLineCount)

参数

containerName
String

the container instance name

tailLineCount
int

only get the last log lines up to this

返回

String

the log lines from the end, up to the number specified

例外

IllegalArgumentException

thrown if parameters fail the validation

适用于