Class Logging.EntryListOption (3.9.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
NameDescription
billingAccountString
Returns
TypeDescription
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
NameDescription
filterString
Returns
TypeDescription
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
NameDescription
folderString
Returns
TypeDescription
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
NameDescription
organizationString
Returns
TypeDescription
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
NameDescription
pageSizeint
Returns
TypeDescription
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
NameDescription
pageTokenString
Returns
TypeDescription
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
NameDescription
fieldLogging.SortingField
orderLogging.SortingOrder
Returns
TypeDescription
Logging.EntryListOption