查看服务器日志。
wadm> get-log --user=admin --password-file=admin.passwd
--host=localhost --port=8989 --start-date=01/01/2006:
09:00:00 --end-date=04/01/2006:
10:00:00 --config=test cat.
test.com
以上命令将显示在日期 01/Jan/2006:
09:00:00
与日期 04/Jan/2006:
10:00:00
之间指定配置的服务器日志。
查看访问日志。
wadm> get-access-log --user=admin --password-file=admin.passwd
--host=localhost --port=8989 --status-code=300 --config=test cat.
test.com
以上命令将只显示指定配置中状态代码为 300 的那些访问日志条目。
在以上命令中,start-date 和 end-date 选项应采用格式-dd/MM/yyyy:HH:mm:ss。也可以自定义日期格式。可以使用 rcfile 中的 wadm_log_date_format 变量指定您自己的日期格式,而不使用默认日期格式。