/// <summary>
 /// Initializes a new instance of the <see cref="SqlScriptFluentMigratorLogger"/> class.
 /// </summary>
 public SqlScriptFluentMigratorLogger(
     SqlTextWriter writer,
     SqlScriptFluentMigratorLoggerOptions options)
     : base(options)
 {
     _writer  = writer;
     _options = options;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="SqlScriptFluentMigratorLoggerProvider"/> class.
        /// </summary>
        /// <param name="output">The writer to write the SQL script to</param>
        /// <param name="options">The log file logger options</param>
        /// <param name="disposeWriter">A value indicating whether the <paramref name="output"/> writer should be disposed by this logger provider</param>
        public SqlScriptFluentMigratorLoggerProvider(
            TextWriter output,
            SqlScriptFluentMigratorLoggerOptions options = null,
            bool disposeWriter = true)
        {
            var opt = options ?? new SqlScriptFluentMigratorLoggerOptions()
            {
                ShowSql = true
            };

            _writer        = output;
            _disposeWriter = disposeWriter;
            _sqlWriter     = new SqlTextWriter(_writer);
            _logFileLogger = new SqlScriptFluentMigratorLogger(_sqlWriter, opt);
        }