def configure(&block)
      @config = Logger::Config.new
      @config.abort_on_failed_reconnect = false

      # provide legacy support for old configuration syntax
      (block.arity > 0) ? yield(@config) : @config.instance_eval(&block)

      ensure_required_options_exist
      initialize_connection unless disabled?
      @configured = true
    end
def configure(&block)
      @config = Logger::Config.new
      @config.abort_on_failed_reconnect = false

      # provide legacy support for old configuration syntax
      (block.arity > 0) ? yield(@config) : @config.instance_eval(&block)

      ensure_required_options_exist
      initialize_connection unless disabled?
      @configured = true
    end
@example Configuring bunyan
   Bunyan::Logger.configure do
     # required options
     database   'bunyan_logger'
     collection 'development_log'

     # optional options
     disabled true
     size 52428800 # 50.megabytes in Rails
   end