File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

localhost_access_log."date".txt has question marks

madhu kannur

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"/>

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

Joined: Jun 06, 2007
Posts: 2851

"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.

|Asking Good Questions|
I agree. Here's the link:
subject: localhost_access_log."date".txt has question marks
It's not a secret anymore!