We have a header log, org.apache.synapse.transport.nhttp.headers=DEBUG
in the nhttp transport. This prints all the headers for a particular
request.

Then we have something called wire logs
org.apache.synapse.transport.nhttp.wire=DEBUG in the nhttp transport.
This prints all the information including the message in to the log.

These two logs are not in the format given above. If you need the
exact format the correct way to do is in the transport and not as a
mediator. It is not that hard and trivial because of the existing
functionality.

Thanks,
Supun..

On Wed, Mar 9, 2011 at 3:23 PM, Afkham Azeez <[email protected]> wrote:
>
>
> On Wed, Mar 9, 2011 at 3:10 PM, Kathiravelu Pradeeban <[email protected]>
> wrote:
>>
>>
>> On Wed, Mar 9, 2011 at 3:04 PM, Afkham Azeez <[email protected]> wrote:
>>>
>>> Do we have something similar to this in Synapse/ESB? This is essential
>>> specially when the ESB is acting as a proxy or LB to several BEs. If not,
>>> what is the best way to implement this? Pradeeban is looking into this, so
>>> any insights & suggestions will be helpful.
>>
>> Thanks. I have started implementing a mediator in Synapse named
>> AccessLogMediator for http access logs. I am following the same way how
>> other mediators are implemented and used in Synapse.
>>
>> Pls let me know if there is something I should know more on this.
>
> This mediator should be unintrusive, and should not be a performance
> overhead. I think the way the Tomcat AccessLogValve works is, it gathers a
> few entries in a memory buffer, and periodically, those entries are flushed
> to the log file. This is handled asynchronously.
>
>>
>> Regards,
>> Pradeeban.
>>>
>>> Azeez
>>>
>>> On Mon, Mar 7, 2011 at 7:44 PM, Afkham Azeez <[email protected]> wrote:
>>>>
>>>> Now an HTTP access log file which looks like the following is created in
>>>> $CARBON_HOME/repository/logs. This is based on the Tomcat AccessLogValve.
>>>> Since this is based on the same standard log style generated by Apache 
>>>> HTTPD
>>>> and many other Web servers, it can be easily used with other HTTP access 
>>>> log
>>>> analysis tools.
>>>>
>>>> 10.100.1.194 - - [07/Mar/2011:18:32:20 +0530] "GET
>>>> /wso2appserver-samples-hello-webapp-1.0/ HTTP/1.1" 200 762 "-" "Mozilla/5.0
>>>> (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, 
>>>> like
>>>> Gecko) Chrome/9.0.597.102 Safari/534.13"
>>>> 10.100.1.194 - - [07/Mar/2011:18:32:20 +0530] "GET /favicon.ico
>>>> HTTP/1.1" 405 1110 "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6;
>>>> en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.102
>>>> Safari/534.13"
>>>> 10.100.1.194 - - [07/Mar/2011:18:32:23 +0530] "GET
>>>> /wso2appserver-samples-hello-webapp-1.0/ HTTP/1.1" 200 762 "-" "Mozilla/5.0
>>>> (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, 
>>>> like
>>>> Gecko) Chrome/9.0.597.102 Safari/534.13"
>>>> 10.100.1.194 - - [07/Mar/2011:18:32:23 +0530] "GET /favicon.ico
>>>> HTTP/1.1" 405 1110 "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6;
>>>> en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.102
>>>> Safari/534.13"
>>>> 10.100.1.194 - - [07/Mar/2011:18:32:25 +0530] "GET
>>>> /wso2appserver-samples-hello-webapp-1.0/ HTTP/1.1" 200 762 "-" "Mozilla/5.0
>>>> (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, 
>>>> like
>>>> Gecko) Chrome/9.0.597.102 Safari/534.13"
>>>> 10.100.1.194 - - [07/Mar/2011:18:32:25 +0530] "GET /favicon.ico
>>>> HTTP/1.1" 405 1110 "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6;
>>>> en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.102
>>>> Safari/534.13"
>>>> 10.100.1.194 - - [07/Mar/2011:18:32:26 +0530] "GET
>>>> /wso2appserver-samples-hello-webapp-1.0/ HTTP/1.1" 200 762 "-" "Mozilla/5.0
>>>> (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, 
>>>> like
>>>> Gecko) Chrome/9.0.597.102 Safari/534.13"
>>>> 10.100.1.194 - - [07/Mar/2011:18:32:27 +0530] "GET /favicon.ico
>>>> HTTP/1.1" 405 1110 "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6;
>>>> en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.102
>>>> Safari/534.13"
>>>> 10.100.1.194 - - [07/Mar/2011:18:32:28 +0530] "GET
>>>> /wso2appserver-samples-hello-webapp-1.0/ HTTP/1.1" 200 762 "-" "Mozilla/5.0
>>>> (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, 
>>>> like
>>>> Gecko) Chrome/9.0.597.102 Safari/534.13"
>>>> 10.100.1.194 - - [07/Mar/2011:18:32:28 +0530] "GET /favicon.ico
>>>> HTTP/1.1" 405 1110 "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6;
>>>> en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.102
>>>> Safari/534.13"
>>>> 10.100.1.194 - - [07/Mar/2011:18:32:30 +0530] "GET
>>>> /wso2appserver-samples-hello-webapp-1.0/ HTTP/1.1" 200 762 "-" "Mozilla/5.0
>>>> (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, 
>>>> like
>>>> Gecko) Chrome/9.0.597.102 Safari/534.13"
>>>> 10.100.1.194 - - [07/Mar/2011:18:32:30 +0530] "GET /favicon.ico
>>>> HTTP/1.1" 405 1110 "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6;
>>>> en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.102
>>>> Safari/534.13"
>>>> 10.100.1.194 - - [07/Mar/2011:18:32:32 +0530] "GET
>>>> /wso2appserver-samples-hello-webapp-1.0/ HTTP/1.1" 200 762 "-" "Mozilla/5.0
>>>> (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, 
>>>> like
>>>> Gecko) Chrome/9.0.597.102 Safari/534.13"
>>>> 10.100.1.194 - - [07/Mar/2011:18:32:32 +0530] "GET /favicon.ico
>>>> HTTP/1.1" 405 1110 "-" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6;
>>>> en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.102
>>>> Safari/534.13"
>>>>
>>>> --
>>>> Afkham Azeez
>>>> Senior Software Architect & Senior Manager; WSO2, Inc.;
>>>> http://wso2.com,
>>>>
>>>> Member; Apache Software Foundation; http://www.apache.org/
>>>> email: [email protected] cell: +94 77 3320919
>>>> blog: http://blog.afkham.org
>>>> twitter: http://twitter.com/afkham_azeez
>>>> linked-in: http://lk.linkedin.com/in/afkhamazeez
>>>>
>>>> Lean . Enterprise . Middleware
>>>
>>>
>>>
>>> --
>>> Afkham Azeez
>>> Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com,
>>>
>>> Member; Apache Software Foundation; http://www.apache.org/
>>> email: [email protected] cell: +94 77 3320919
>>> blog: http://blog.afkham.org
>>> twitter: http://twitter.com/afkham_azeez
>>> linked-in: http://lk.linkedin.com/in/afkhamazeez
>>>
>>> Lean . Enterprise . Middleware
>>>
>>> _______________________________________________
>>> Carbon-dev mailing list
>>> [email protected]
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>
>>
>>
>> --
>> Kathiravelu Pradeeban.
>> Software Engineer.
>> WSO2 Inc.
>>
>> Blog: [Llovizna] http://kkpradeeban.blogspot.com/
>
>
>
> --
> Afkham Azeez
> Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com,
>
> Member; Apache Software Foundation; http://www.apache.org/
> email: [email protected] cell: +94 77 3320919
> blog: http://blog.afkham.org
> twitter: http://twitter.com/afkham_azeez
> linked-in: http://lk.linkedin.com/in/afkhamazeez
>
> Lean . Enterprise . Middleware
>



-- 
Supun Kamburugamuva
Technical Lead &  Product Manager, WSO2 Inc.; http://wso2.com
Member, Apache Software Foundation; http://www.apache.org
WSO2 Inc.;  http://wso2.org
E-mail: [email protected];  Mobile: +94 77 431 3585
Blog: http://supunk.blogspot.com
_______________________________________________
Carbon-dev mailing list
[email protected]
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to