Class Logging.TailOption (3.8.0)

public static final class Logging.TailOption extends Option

Class for specifying options for tailing log entries.

Inheritance

Object > com.google.cloud.logging.Option > Logging.TailOption

Static Methods

billingAccount(String billingAccount)

public static Logging.TailOption billingAccount(String billingAccount)

Returns an option to specify a billingAccount for the log entries to be tailed.

Parameter
NameDescription
billingAccountString
Returns
TypeDescription
Logging.TailOption

bufferWindow(String duration)

public static Logging.TailOption bufferWindow(String duration)

Returns an option to specify the amount of time to buffer log entries at the server before being returned to prevent out of order results due to late arriving log entries. Valid values are between 0-60000 ms. Default is 2000 ms. See Also: Duration format

Parameter
NameDescription
durationString
Returns
TypeDescription
Logging.TailOption

filter(String filter)

public static Logging.TailOption filter(String filter)

Returns an option to specify a filter to the log entries to be tailed. See Also: Advanced Logs Filters

Parameter
NameDescription
filterString
Returns
TypeDescription
Logging.TailOption

folder(String folder)

public static Logging.TailOption folder(String folder)

Returns an option to specify a folder for the log entries to be tailed.

Parameter
NameDescription
folderString
Returns
TypeDescription
Logging.TailOption

organization(String organization)

public static Logging.TailOption organization(String organization)

Returns an option to specify an organization for the log entries to be tailed.

Parameter
NameDescription
organizationString
Returns
TypeDescription
Logging.TailOption

project(String project)

public static Logging.TailOption project(String project)

Returns an option to specify a project for the log entries to be tailed.

Parameter
NameDescription
projectString
Returns
TypeDescription
Logging.TailOption