From e9323e7f09d171739e8dbc9d60d77281caa06177 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 5 Aug 2010 08:46:04 +0000 Subject: [PATCH] instaweb: add access+error logging for WEBrick This allows WEBrick to support all the logging functionality in a manner consistent with the other web servers. Signed-off-by: Eric Wong --- git-instaweb.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/git-instaweb.sh b/git-instaweb.sh index e69fb74fef..e6f6ecda17 100755 --- a/git-instaweb.sh +++ b/git-instaweb.sh @@ -216,9 +216,15 @@ EOF cat >"$fqgitdir/gitweb/$httpd.rb" < $port, :DocumentRoot => "$root", + :Logger => Logger.new('$fqgitdir/gitweb/error.log'), + :AccessLog => [ + [ Logger.new('$fqgitdir/gitweb/access.log'), + WEBrick::AccessLog::COMBINED_LOG_FORMAT ] + ], :DirectoryIndex => ["gitweb.cgi"], :CGIInterpreter => "$wrapper", :StartCallback => lambda do -- 2.11.4.GIT