Class Logging.TailOption (3.20.4)

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
Name Description
billingAccount String
Returns
Type Description
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
Name Description
duration String
Returns
Type Description
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
Name Description
filter String
Returns
Type Description
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
Name Description
folder String
Returns
Type Description
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
Name Description
organization String
Returns
Type Description
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
Name Description
project String
Returns
Type Description
Logging.TailOption