• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Apache Log

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
oops, sorry, i am tailing the xxxx.log
reply
    Bookmark Topic Watch Topic
  • New Topic