Skip to content

Commit cfea80f

Browse files
authored
Merge pull request #35 from sasin07/release_v2.0.2
Release v2.0.2
2 parents 82d0fa2 + 19c223b commit cfea80f

File tree

3 files changed

+44
-9
lines changed

3 files changed

+44
-9
lines changed

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,10 @@ Enable Request ID and Payload Logging
99

1010
Follow below three steps for enabling request ID and payload logging
1111

12-
1) Apply logging-extension-1.0.0-SNAPSHOT.jar to API Manager;
13-
a) Copy and paste the 'logging-extension-1.0.0-SNAPSHOT.jar' in to deployed api manager lib directory. (Patch source is available under "/wso2telcohub/repository/components/lib".)
14-
15-
The actual deployment path is as follows;
16-
wso2telcohub-2.0.0/repository/components/dropins
17-
12+
1) Apply logging-extension-2.0.2.jar to API Manager;
13+
a) Copy and paste the 'logging-extension-2.0.2.jar' in to deployed api manager lib directory. (Patch source is available under "/wso2telcohub/repository/components/lib".)
14+
b) Apply the logManagerConfig.xml (config/logManagerConfig.xml) file (located in conf folder to Gateway node <APIM>repository/conf)
15+
1816

1917

2018
2) Enable Log4J properties for the newly installed feature
@@ -40,7 +38,7 @@ Follow below three steps for enabling request ID and payload logging
4038
c) Save the edited log4j.properties file.
4139

4240

43-
3) Synapse changes for enabling Request ID and Payload Logging;
41+
3) Synapse changes for enabling Request ID and Payload Logging (Synapse Configurations files located at wso2telcohub/repository/deployment/server/synapse-configs/default/sequences);
4442
a) If the request ID and the payload of a request needs to be logged for all APIs, then add the following two elements inside the sequence tag of WSO2AM-ExtIn.xml
4543

4644
<property name="message.type" scope="axis2" type="STRING" value="request"/>
@@ -56,7 +54,7 @@ Follow below three steps for enabling request ID and payload logging
5654
<property name="message.type" scope="axis2" type="STRING" value="error"/>
5755
<class name="com.wso2telco.logging.PropertyLogHandler"/>
5856

59-
(Synapse Configurations files located at wso2telcohub/repository/deployment/server/synapse-configs/default/sequences)
57+
6058

6159
Enable Payload body from registry
6260
=================================

config/logManagerConfig.xml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?xml version="1.0"?>
2+
<logManagerConfig>
3+
<REQUEST>
4+
<API_REQUEST_ID>MESSAGE_ID,MC</API_REQUEST_ID>
5+
<API_NAME>api.ut.api,MC</API_NAME>
6+
<SP_NAME>api.ut.userName,MC</SP_NAME>
7+
<API_PUBLISHER>api.ut.apiPublisher,MC</API_PUBLISHER>
8+
<API_VERSION>SYNAPSE_REST_API_VERSION,MC</API_VERSION>
9+
<API_CONTEXT>api.ut.context,MC</API_CONTEXT>
10+
<APPLICATION_NAME>api.ut.application.name,MC</APPLICATION_NAME>
11+
<APPLICATION_ID>api.ut.application.id,MC</APPLICATION_ID>
12+
<CONSUMER_KEY>api.ut.consumerKey,MC</CONSUMER_KEY>
13+
<API_RESOURCE_PATH>REST_SUB_REQUEST_PATH,MC</API_RESOURCE_PATH>
14+
<METHOD>api.ut.HTTP_METHOD,MC</METHOD>
15+
<BODY>BODY,RP</BODY>
16+
</REQUEST>
17+
<RESPONSE>
18+
<API_REQUEST_ID>MESSAGE_ID,MC</API_REQUEST_ID>
19+
<HTTP_STATUS>HTTP_SC,AX</HTTP_STATUS>
20+
<RESPONSE_TIME>RESPONSE_TIME,MC</RESPONSE_TIME>
21+
<BODY>BODY,RP</BODY>
22+
</RESPONSE>
23+
<ERRORRESPONSE>
24+
<API_REQUEST_ID>MESSAGE_ID,MC</API_REQUEST_ID>
25+
<REQUEST_BODY>REQUEST_BODY,RB</REQUEST_BODY>
26+
<REST_FULL_REQUEST_PATH>REST_FULL_REQUEST_PATH,MC</REST_FULL_REQUEST_PATH>
27+
<SYNAPSE_REST_API>SYNAPSE_REST_API,MC</SYNAPSE_REST_API>
28+
<SYNAPSE_REST_API_VERSION>SYNAPSE_REST_API_VERSION,MC</SYNAPSE_REST_API_VERSION>
29+
<API_RESOURCE_CACHE_KEY>API_RESOURCE_CACHE_KEY,MC</API_RESOURCE_CACHE_KEY>
30+
<ERROR_EXCEPTION>ERROR_EXCEPTION,MC</ERROR_EXCEPTION>
31+
<APPLICATION_NAME>api.ut.application.name,MC</APPLICATION_NAME>
32+
<APPLICATION_ID>api.ut.application.id,MC</APPLICATION_ID>
33+
<ERROR_CODE>ERROR_CODE,MC</ERROR_CODE>
34+
<HTTP_STATUS>HTTP_SC,AX</HTTP_STATUS>
35+
<ERROR_MESSAGE>ERROR_MESSAGE,MC</ERROR_MESSAGE>
36+
</ERRORRESPONSE>
37+
</logManagerConfig>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<groupId>com.wso2telco</groupId>
2424
<artifactId>logging-extension</artifactId>
2525
<name>logging-extension</name>
26-
<version>2.0.1-orange</version>
26+
<version>2.0.2</version>
2727
<packaging>bundle</packaging>
2828
<dependencies>
2929
<dependency>

0 commit comments

Comments
 (0)