wood burning stoves 2.0*
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 2716

"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|
It is sorta covered in the JavaRanch Style Guide.
subject: localhost_access_log."date".txt has question marks
Similar Threads
HttpUrlConnection: Login works only for first page
HTTP response code: 403 on http://translate.google.com/translate_tts?q=hello%20world
url to login with id and pw
Request Object
Some (not all!) UTF8 Characters render as "?" only from UNIX server -- works perfectly local (Win)..