You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by sangeetha k <ge...@yahoo.com> on 2011/11/01 17:04:05 UTC

chainsaw issue

Hi,
 
I am using chainsaw to view the log generated using log4j.
 
Here is my configurations
 
Sample log
 
2011-10-31 08:02:00,332 [ INFO] [9447566@qtp-19458313-0] [net.hp.tr.businesslogic.referenceimplcustomer.businesslogic.CustomerController] [Organization: Travelocity] [Client: AA] [Location of device: DFW] [User: 550393] [User_role: Provider] [CorelationId: 947] [URL : http://localhost:8080/webapp/app/common_ux_js_shell/shell_devel.html] [Component: CustomerController.get] [Server: 127.0.0.1] [Request: ] [Response: void] [Status: pass] - Entering Method = get() 
 
log4j format
 <layoutclass="org.apache.log4j.PatternLayout"><!-- The log message pattern --><paramname="ConversionPattern"value="%d{ISO8601} [%p] [%t] [%X{classname}] [Organization: %X{organization}] [Client: %X{client}] [Location of device: %X{deviceloc}] [User: %X{user}] [User_role: %X{user_role}] [CorelationId: %X{corelationID}] [URL : %X{url}] [Component: %X{component}] [Server: %X{server}] [Request: %X{request}] [Response: %X{response}] [Status: %X{status}] - %m%n"/></layout>
 
chainsaw configuration
 
<param name="logFormat" value="TIMESTAMP [LEVEL] [THREAD] [CLASS] [PROP(ORGAN)] [PROP(CLIENT)] [PROP(LOCATION_DEVICE)] [PROP(USER)] [PROP(ROLE)] [PROP(CORELATIONID)] [PROP(URL)] [PROP(COMPONENT)] [PROP(SERV)]  * - MESSAGE"/>
 
I was able to view the log in chainsaw upto prop(server) attribute, after that if i add PROP(REQUEST), response, status in the chinsaw configuration...log file is not getting loaded in chainsaw.
 
 
Thanks,
Sangeetha