File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes localhost_access_log. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "localhost_access_log."date".txt has question marks " Watch "localhost_access_log."date".txt has question marks " New topic
Author

localhost_access_log."date".txt has question marks

madhu kannur
Greenhorn

Joined: Jan 06, 2009
Posts: 1
Hello All,

The server.xml looks like this
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log." suffix=".txt"
pattern="%{Host}i %{User-Agent}i %{Accept}i %{Keep-Alive}i %{Proxy-Connection}i %{Cookie}i" resolveHosts="false"/>

But
localhost_access_log."date".txt log has

???{???Host}i ???{???User-Agent}i ???{???Accept}i ???{???Keep-Alive}i ???{???Proxy-Connection}i ???{???Cookie}i line,


If i change pattern to common, the logs look fine.

Can i know what can be the reason , to display question marks, and why does it work correcttly for common pattern.

Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2718
    
    6

"maddy boy " welcome to Javaranch
please check your private messages for an important administrative matter. You can see them by clicking the My Private Messages link above.


SCJP, SCWCD.
|Asking Good Questions|
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: localhost_access_log."date".txt has question marks