This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Apache Log

 
Demi Ola
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Demi Ola
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oops, sorry, i am tailing the xxxx.log
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic