def __init__(self, logdir, max_queue=<NUM_LIT:10>, flush_secs=<NUM_LIT>, filename_suffix=None, verbose=True):
event_writer = EventFileWriter(logdir, max_queue, flush_secs, filename_suffix, verbose)<EOL>super(FileWriter, self).__init__(event_writer)<EOL>
Creates a `FileWriter` 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_summary()`, or `add_event()`.

        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 logging messages.