                 try
                     res.setHeader "Content-Type", "text/plain"
                 catch error
-                    console.log error
+                    logger error
                 next()
 
         # Serve the files

        if not @options.directory.match(/^\//)
            @options.directory = path.normalize(process.cwd() + "/" + @options.directory)

        # Overwrite console if we are in quiet mode
        if @options.quiet and not @options.verbose
            console["log"] = ->

        # Create the server
        @server = connect()


    listen: ->
        # Print a startup message unless we are in quiet mode
        logger "Serving static file from directory".green, "#{@options.directory}".cyan, "on port".green, "#{@options.port}".cyan
        @server = http.createServer(@server).listen @options.port

    close: ->
        @server.close()
