0

I have several API resources deployed in the WSO2 ESB. In order to monitor the calls they receive Web services exposed in API resources, I would like to show in the log full HTTP header of the request.

I know I can do this parameter by parameter from the HTTP header, but I wonder if there is any way to do this in a unique way.

Thanks.

Community
  • 1
  • 1
Sergio Rodríguez Calvo
  • 1,183
  • 2
  • 16
  • 32

1 Answers1

1

Open /repository/conf/log4j.properties and uncomment the following line.

log4j.logger.httpclient.wire.header=DEBUG
Sajith Eshan
  • 696
  • 4
  • 17
  • Thanks. But, is it not possible to do this in definition of the API resource? I mean, just in one line, not to access parameter by parameter. – Sergio Rodríguez Calvo May 19 '15 at 09:36
  • 1
    It's not possible to do this in the definition it self. To access the headers in the definition you will have to access one header by one. – Sajith Eshan May 19 '15 at 09:41