 	# Set Log Level
 	setLogLevel: (level) ->
 		@getLogger().setConfig({level})
+		if level is 7
+			loggers = @getLoggers()
+			loggers.debug ?= loggers.logger
+				.pipe(
+					new (require('caterpillar-human').Human)
+				)
+				.pipe(
+					require('fs').createWriteStream(process.cwd()+'/docpad-debug.log')
+				)
 		@
 
 	# Are we debugging?

		@setServer(@config.server)  if @config.server

		# Extract and apply the logger
		@setLogger(@config.logger)  if @config.logger
		@setLogLevel(@config.logLevel)

		# Resolve any paths

		@serverExpress = servers.serverExpress
		@serverHttp = servers.serverHttp

	# The caterpillar instances bound to docpad
	loggerInstances: null
	getLogger: -> @loggerInstances?.logger
	getLoggers: -> @loggerInstances
	setLoggers: (loggers) ->
		if @loggerInstances
			@warn('Loggers have already been set')
		else
			@loggerInstances = loggers
		return loggers

	# The action runner instance bound to docpad
	actionRunnerInstance: null
