def __init__(self, logdir, max_queue=<NUM_LIT:10>, flush_secs=<NUM_LIT>, filename_suffix=None, verbose=True):
self._file_writer = FileWriter(logdir=logdir, max_queue=max_queue,<EOL>flush_secs=flush_secs, filename_suffix=filename_suffix,<EOL>verbose=verbose)<EOL>self._max_queue = max_queue<EOL>self._flush_secs = flush_secs<EOL>self._filename_suffix = filename_suffix<EOL>self._verbose = verbose<EOL>self._all_writers = {self._file_writer.get_logdir(): self._file_writer}<EOL>self._logger = None<EOL>if verbose:<EOL><INDENT>self._logger = logging.getLogger(__name__)<EOL>self._logger.setLevel(logging.INFO)<EOL><DEDENT>self._default_bins = None<EOL>self._text_tags = []<EOL>self._scalar_dict = {}<EOL>
Creates a `SummaryWriter` and an event file.
On construction the summary writer creates a new event file in `logdir`.
This event file will contain `Event` protocol buffers constructed when you
call one of the following functions: `add_audio()`, `add_embedding()`,
`add_histogram()`, `add_image()`, `add_pr_curve()`, `add_scalar()`, and `add_text()`.
Please make sure that the `logdir` used here for initiailizing `SummaryWriter`
matches the `--logdir` parameter you passed to the `tensorboard` binary in the command line
for launching TensorBoard.

Parameters
----------
    logdir : str
        Directory where event file will be written.
    max_queue : int
        Size of the queue for pending events and summaries.
    flush_secs: Number
        How often, in seconds, to flush the pending events and summaries to disk.
    filename_suffix : str
        Every event file's name is suffixed with `filename_suffix` if provided.
    verbose : bool
        Determines whether to print the logging messages.