package com.wm.affnet.util; import org.apache.log4j.logger; import org.apache.log4j.Priority; public class Applogger { // static { // Properties props = new Properties(); // System.setProperty("log4j.properties", "true");//yzy set the system property // FileInputStream istream = null; // try { // istream = new FileInputStream("src/log4j.properties"); // props.load(istream); // istream.cl...
by wzi-linux - Java文档中心 - 2009-08-20 11:59:51 阅读(571) 回复(0)
ul 05 10:55:13 2005: Backup Server: 6.28.1.1: Dumpfile name 'dump0516703096 ' section number 0001 mounted on disk file 'd:/dump.dat' Jul 05 10:55:13 2005: Backup Server: 3.29.2.1: No virtual mapping for logical page 16842757. Jul 05 10:55:13 2005: Backup Server: 3.29.2.1: No virtual mapping for logical page 17367301. Jul 05 10:55:13 2005: Backup Server: 3.29.2.1: No virtual mapping for logical p...
Apr 16 12:00:14 pdm20201 ftp[2023518]: ftp: IMPORT user qoo, host 12.12, local /tmp/ftps6UfUa, remote *ghdinfo20090416.out. Apr 16 12:00:15 pdm20201 su: from root to mqm at /dev/tty?? Apr 16 12:00:18 pdm20201 su: from root to mqm at /dev/tty?? Apr 16 12:00:16 pdm20201 ftp[2023518]: ftp: IMPORT user qoo, host 12.12,, local 04ghdinfo20090416.out, remote 04ghdinfo20090416.out. --------------------...
如果想让access.log只记录用户主动点击后的地址如 http://t.zsnet.com/ViewUserInfo.asp?pid=666900 形如(但不限于)下面的地址不作记录 http://t.zsnet.com/images/btn_scmes. jpg XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.js XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.css 可以做到吗?怎么做? 谢谢. 试了半天都没试到. [ 本帖最后由 skveen 于 2009-1-17 11:29 编辑 ]
Jun 30 09:30:56 xs01 bootpd[28944]: DHCP INFORM [en0]: 1,0:17:a4:4a:f4:31
作了一个web测试服务器,在web根目录下有一个压缩文件,可以通过浏览器下载。后来把该压缩文件删除后,在access.log和error.log里面出现大量重复的记录。access.log如下: 220.176.66.93 - - [19/Mar/2008:10:39:54 +0800] "GET /***.rar HTTP/1.1" 416 503 "http://www.66735.com/read.php?tid=84966" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" error.log [Sun Dec 30 08:37:51 2007] [error] [client 222.223.173....
我想将log同步到远程计算机应该怎么作啊?我是在hosts中添加上对方ip与主机名的影射,在syslog中增加了一行, *.notice @logsrv 但并没有在logsrv这台机器上找到发过来的log。