[ 
https://issues.apache.org/jira/browse/KNOX-597?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14903229#comment-14903229
 ] 

Kevin Minder commented on KNOX-597:
-----------------------------------

The following disabled configuration settings were added to the default 
gateway-log4j.properties.
{code}
#log4j.logger.org.apache.hadoop.gateway.access=TRACE,httpaccess
#log4j.additivity.org.apache.hadoop.gateway.access=false

#log4j.logger.org.apache.hadoop.gateway.http=TRACE,httpserver
#log4j.additivity.org.apache.hadoop.gateway.http=false
##log4j.logger.org.apache.hadoop.gateway.http.request.headers=OFF
##log4j.logger.org.apache.hadoop.gateway.http.response.headers=OFF
##log4j.logger.org.apache.hadoop.gateway.http.request.body=OFF
##log4j.logger.org.apache.hadoop.gateway.http.response.body=OFF

#log4j.logger.org.apache.http.wire=DEBUG,httpclient
#log4j.additivity.org.apache.http.wire=false

#log4j.appender.httpaccess=org.apache.log4j.DailyRollingFileAppender
#log4j.appender.httpaccess.File=${app.log.dir}/${launcher.name}-http-access.log
#log4j.appender.httpaccess.DatePattern=.yyyy-MM-dd
#log4j.appender.httpaccess.layout=org.apache.log4j.PatternLayout
#log4j.appender.httpaccess.layout.ConversionPattern=%d{ISO8601}|%t|%m%n

#log4j.appender.httpserver=org.apache.log4j.DailyRollingFileAppender
#log4j.appender.httpserver.File=${app.log.dir}/${launcher.name}-http-server.log
#log4j.appender.httpserver.DatePattern=.yyyy-MM-dd
#log4j.appender.httpserver.layout=org.apache.log4j.PatternLayout
#log4j.appender.httpserver.layout.ConversionPattern=%d{ISO8601}|%t|%m%n

#log4j.appender.httpclient=org.apache.log4j.DailyRollingFileAppender
#log4j.appender.httpclient.File=${app.log.dir}/${launcher.name}-http-client.log
#log4j.appender.httpclient.DatePattern=.yyyy-MM-dd
#log4j.appender.httpclient.layout=org.apache.log4j.PatternLayout
#log4j.appender.httpclient.layout.ConversionPattern=%d{ISO8601}|%t|%m%n
{code}

> Improve diagnostic logging of HTTP traffic
> ------------------------------------------
>
>                 Key: KNOX-597
>                 URL: https://issues.apache.org/jira/browse/KNOX-597
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 0.6.0
>            Reporter: Kevin Minder
>            Assignee: Kevin Minder
>             Fix For: 0.7.0
>
>         Attachments: KNOX-597_001.patch
>
>
> Currently it is very difficult to gain visibility into the HTTP traffic on 
> the between the client and Knox.  It would be ideal to have similar wire 
> level logging as is offered by the org.apache.http.wire Log4J loggers.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to