This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Apache Log Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Apache Log" Watch "Apache Log" New topic
Author

Apache Log

Demi Ola
Greenhorn

Joined: Oct 04, 2005
Posts: 3
Hi, I am tailing the apache log file, but i am getting a lot of apache related stuff in my logs, any idea how to turn this off?

thanks in advance.
Nigel Chou
Ranch Hand

Joined: Oct 11, 2001
Posts: 47
I am using apache log, but can't find message written by my programme. I wonder whether the file name is right, or whether I used the log API properly. Can you please tell me which file are you tailing? and Where is the documentation about apache log.

thanks.


SCJP for Java 2, SCWCD, SCMAD
Demi Ola
Greenhorn

Joined: Oct 04, 2005
Posts: 3
I have log4j deployed.
this is what i have in my log4j.properties

log4j.rootLogger=DEBUG, stdout

log4j.appender.stdout=org.apache.log4j.FileAppender


log4j.appender.stdout.File=${catalina.home}/logs/XXXXXX.log
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout

My log is picking up apache log messages
Introspected attribute bytesSent public long org.apache.coyote.RequestInfo.getBy
tesSent() public void org.apache.coyote.RequestInfo.setBytesSent(long)
Introspected attribute method public java.lang.String org.apache.coyote.RequestI
nfo.getMethod() null
Introspected attribute remoteAddr public java.lang.String org.apache.coyote.Requ
estInfo.getRemoteAddr() null
Introspected attribute requestBytesSent public long org.apache.coyote.RequestInf
o.getRequestBytesSent() null
Introspected attribute contentLength public int org.apache.coyote.RequestInfo.ge
tContentLength() null
Demi Ola
Greenhorn

Joined: Oct 04, 2005
Posts: 3
oops, sorry, i am tailing the xxxx.log
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Apache Log
 
Similar Threads
how to generate the unique message id for log message
Logging SOAP Messages
Apache access log rotation
Logging HTTP header info using Apache HTTP
Application cannot create log file in linux