Class Logging.EntryListOption (3.18.0)

public static final class Logging.EntryListOption extends Option

Class for specifying options for listing log entries.

Inheritance

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

Static Methods

billingAccount(String billingAccount)

public static Logging.EntryListOption billingAccount(String billingAccount)

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

Parameter
Name Description
billingAccount String
Returns
Type Description
Logging.EntryListOption

filter(String filter)

public static Logging.EntryListOption filter(String filter)

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

Parameter
Name Description
filter String
Returns
Type Description
Logging.EntryListOption

folder(String folder)

public static Logging.EntryListOption folder(String folder)

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

Parameter
Name Description
folder String
Returns
Type Description
Logging.EntryListOption

organization(String organization)

public static Logging.EntryListOption organization(String organization)

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

Parameter
Name Description
organization String
Returns
Type Description
Logging.EntryListOption

pageSize(int pageSize)

public static Logging.EntryListOption pageSize(int pageSize)

Returns an option to specify the maximum number of log entries returned per page.

Parameter
Name Description
pageSize int
Returns
Type Description
Logging.EntryListOption

pageToken(String pageToken)

public static Logging.EntryListOption pageToken(String pageToken)

Returns an option to specify the page token from which to start listing log entries.

Parameter
Name Description
pageToken String
Returns
Type Description
Logging.EntryListOption

sortOrder(Logging.SortingField field, Logging.SortingOrder order)

public static Logging.EntryListOption sortOrder(Logging.SortingField field, Logging.SortingOrder order)

Returns an option to sort log entries. If not specified, log entries are sorted in ascending (most-recent last) order with respect to the LogEntry#getTimestamp() value.

Parameters
Name Description
field Logging.SortingField
order Logging.SortingOrder
Returns
Type Description
Logging.EntryListOption