# tf.compat.v2.summary.create_file_writer

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/ops/summary_ops_v2.py#L333-L391) |

Creates a summary file writer for the given log directory.

    tf.compat.v2.summary.create_file_writer(
        logdir, max_queue=None, flush_millis=None, filename_suffix=None, name=None
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `logdir` | a string specifying the directory in which to write an event file. |
| `max_queue` | the largest number of summaries to keep in a queue; will flush once the queue gets bigger than this. Defaults to 10. |
| `flush_millis` | the largest interval between flushes. Defaults to 120,000. |
| `filename_suffix` | optional suffix for the event file name. Defaults to `.v2`. |
| `name` | a name for the op that creates the writer. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A SummaryWriter object. ||

<br />