 
 	listen: (port, callback) ->
 		@server.listen port, () =>
-			@logger.info "Serving #{@relative} as '#{@name}' on port #{port}."
+			@log.info "Serving #{@relative} as '#{@name}' on port #{port}."
 			callback?()
 		return this
 
 	close: (callback) ->
 		@server.close () ->
-			@logger.info "Stopped serving '#{@name}'."
+			@log.info "Stopped serving '#{@name}'."
 			callback?()
 		return this
 

		if not name? then throw new Error 'Missing `name` parameter'
		@name = name

		if not logger? then throw new Error 'Missing `logger` parameter'
		@logger = logger

		for method in ['options', 'get', 'post', 'delete']
			@_methods[method] = @['_' + method] this

		thus = this
		@server = http.createServer (req, res) ->

http =			require 'http'
url =			require 'url'
accepts =		require 'accepts'

onOPTIONS =		require './methods/options'
onGET =			require './methods/get'
onPOST =		require './methods/post'
onDELETE =		require './methods/delete'
Context =		require './Context'



