基于一些原因,我们需要查看apache中关于subversion的日志,但是apache的日志很混乱(基本的请求信息,不利于阅读)。“mod_dav_svn”模块的“operational logging”属性可以解决这一问题。
| # 修改apache配置文件 user@~$ sudo vim /etc/httpd/conf/httpd.conf # </Location> 在这段之后加上一行 CustomLog # 重启 apache 即可 |
修改后就能看到比较可读的日志了,如下:
| [06/Oct/2008:20:12:57 +0800] – get-dir /trunk/cache/tplc r7 props [06/Oct/2008:20:13:01 +0800] – get-dir /trunk/cache/tplc/ r7 text [06/Oct/2008:20:13:08 +0800] – get-dir /tags/ r7 text [06/Oct/2008:20:13:31 +0800] – get-dir /tags r7 props [06/Oct/2008:20:13:31 +0800] – get-dir /tags/ r7 text [06/Oct/2008:20:13:31 +0800] – get-dir /tags r7 props [06/Oct/2008:20:13:32 +0800] user commit r8 [06/Oct/2008:20:13:32 +0800] – get-dir /tags r8 props [06/Oct/2008:20:13:32 +0800] – get-dir /tags/guestbook_1.0 r8 props [06/Oct/2008:20:13:32 +0800] – get-dir /tags r8 props [06/Oct/2008:20:13:34 +0800] user get-dir /tags/guestbook_1.0 r8 props [06/Oct/2008:20:13:34 +0800] – get-file /tags/guestbook_1.0/index.php r8 props |
─s─v─n─
以前还真没有注意过这个参数, 学到一招.
疯了,我看不懂~