# Class Logging.TailOption (3.34.0)

3.34.0 (latest) 3.32.0 3.29.0 3.28.0 3.26.0 3.24.0 3.23.10 3.22.6 3.21.4 3.20.7 3.19.0 3.18.0 3.17.2 3.16.2 3.15.17 3.14.9 3.13.7 3.12.1 3.11.10 3.10.7 3.9.0 3.8.0 3.7.6 3.6.4 3.5.3

    public static final class Logging.TailOption extends Option

Class for specifying options for tailing log entries.

## Inheritance

[Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> com.google.cloud.logging.Option \> Logging.TailOption

## Inherited Members

com.google.cloud.logging.Option.equals(java.lang.Object) com.google.cloud.logging.Option.hashCode() com.google.cloud.logging.Option.toString() [Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## 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` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-logging/latest/com.google.cloud.logging.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](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Duration)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `duration` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-logging/latest/com.google.cloud.logging.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](https://cloud.google.com/logging/docs/view/advanced_filters)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `filter` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-logging/latest/com.google.cloud.logging.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` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-logging/latest/com.google.cloud.logging.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` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-logging/latest/com.google.cloud.logging.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` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-logging/latest/com.google.cloud.logging.Logging.TailOption` |   |