Professional Documents
Culture Documents
Apps Logger
Apps Logger
Document Contact
Karanbir Dhillon
Organization
Version Number
1.0
Last Revision By
Karanbir
DhillonKARANBIR
DHILLONKARANBIR DHILLON
Total Pages :
42
Table of Contents
Table of Contents........................................................................................................................ 2
Document Information................................................................................................................. 3
Fusion Application Logging Configurations..................................................................................4
Fusion Application Logging Configurations in logging.xml........................................................4
Fusion Application Logging Configurations via EM..................................................................6
Enabling Fusion Application Logging.........................................................................................12
Enabling Fusion Application Logging from Fusion UI.............................................................12
Enabling Fusion Application Logging from Profile Options UI................................................15
Enabling Fusion Application Logging from Profile Options Database PL/SQL Another Option
............................................................................................................................................... 19
Generating Fusion Application Log Files for Fusion UI..............................................................21
Review Fusion Application Logs................................................................................................22
Review Fusion Application Logs from EM.............................................................................22
Review Fusion Application Logs on Server...........................................................................25
Review Logs from LogSpy.....................................................................................................26
Scenario Multiple users running Fusion Apps Logging .............................................................27
How to get Fusion Application Logging for a specific source code.............................................29
Fusion Application Logging for ADF WebServices....................................................................32
Fusion Application Logging for ESS - Java................................................................................34
Fusion Application Logging for ESS PL/SQL..........................................................................39
Document Information
Document Participants
Karanbir Dhillon
Author(s)
Contributor(s)
Reviewer(s)/Approver(s)
Benefited/Affected Organization(s)
Revision History
Version
1.0
Modified
Date
09/03/2010
Who
Karanbir
Dhillon
Changed
Section(s)
All
Change Summary
New Document
If the changes are made to logging.xml the Managed Server has to be bounced to
read the changes. It is recommended to make the changes via EM not updating
logging.xml
3. Then go to Log Configuration ie WebLogic Server -> Logs -> Log Configuration
4. See the Runtime Logger for oracle.apps and see the Handler it is using by expanding
the Root Logger then oracle.
5. Click on the Handler or navigate to Log Files and click on the Handler name to see
details
6. Can make changes to the File Size, Path, etc and click OK which will update the
logging.xml as discussed earlier of the Managed Server. See Eg the File Size changed
to 100MB and max to 1000MB. The default format of ODL is Text can be changed to
XML also.
NOTE : Please do not make changes as will affect others
If any changes are made and saved you will a confirmation box.
4. Enable the Applications Logging and Change the Logging Level to save FINEST and
Logging Module Everything ie %
NOTE : If already enabled ignore it
5. Click OK to Apply the same which will save the Application Logging Profile. This will
enable the logging for the logged in user only.
6. You need to Logout of the Application and Log back in to get the Apps Logger files
created. Currently in our Env logout is not working so make sure you close the browser
and when you navigate back to the SalesCampaign URL you should see login box. Now
do any activity in the UI the Fusion Application Logging will be done in the Handler seen
earlier.
4. Edit the Profile Options say AFLOG_LEVEL for SITE, User etc and save and then
when the user Logs in will get AppsLogger file created in appropriate level. Lets take
Scenario where Admin wants to change for the user SALES_ADMIN the Log level to
FINEST where as for the SITE the Log Level is Severe.
NOTE : If the option is already set ignore it
To update the Profile using PL/SQL for AFLOG_LEVEL for SITE to 1000.
DECLARE
X_NAME VARCHAR2(200);
X_VALUE VARCHAR2(200);
X_LEVEL_NAME VARCHAR2(200);
X_LEVEL_VALUE VARCHAR2(200);
v_Return BOOLEAN;
BEGIN
X_NAME := 'AFLOG_LEVEL';
X_VALUE := '1000';
X_LEVEL_NAME := 'SITE';
X_LEVEL_VALUE := 'SITE';
v_Return := FND_PROFILE.SAVE(
To update the Profile using PL/SQL for AFLOG_LEVEL for User SALES_ADMIN to Finest.
Note need the GUID of the user. It is in PER_USERS table.
DECLARE
X_NAME VARCHAR2(200);
X_VALUE VARCHAR2(200);
X_LEVEL_NAME VARCHAR2(200);
X_LEVEL_VALUE VARCHAR2(200);
v_Return BOOLEAN;
BEGIN
X_NAME := 'AFLOG_LEVEL';
X_VALUE := '300';
X_LEVEL_NAME := 'USER';
X_LEVEL_VALUE := ' C207BB06AFF8AC902FC7F9803EB6EB49';
v_Return := FND_PROFILE.SAVE(
X_NAME => X_NAME,
X_VALUE => X_VALUE,
X_LEVEL_NAME => X_LEVEL_NAME,
X_LEVEL_VALUE => X_LEVEL_VALUE
);
IF (v_Return) THEN
DBMS_OUTPUT.PUT_LINE('v_Return = ' || 'TRUE');
ELSE
DBMS_OUTPUT.PUT_LINE('v_Return = ' || 'FALSE');
END IF;
END;
3. Navigate to View Log Messages ie WebLogic Server -> Logs -> View Log Messages
4. There you can Add fields and values and search on Message Types and select and
unselect Targets
Can Limit the various Logs file and search within particular files.
2. Optionally from the Profiles Ui, add the User and the Profile value %crm%
3. Now Launch the Sales Campaign flow and will see very few lines gets logged as
compared to % done earlier.
Now if you do the Application flow the AppsLogger file will be have only where Modules
have crm in it. See sample lines
[2010-08-26T18:01:01.379-07:00] [MarketingServer_1] [TRACE:16] [] [oracle.apps] [tid: 11]
[userId: SALES_ADMIN] [ecid: 004ZgE_z231EkJQRyaz0D00003kc000MUu,0:1] [SRC_CLASS:
oracle.apps.fnd.applcore.log.AppsODLHandler] [APPS_AUTO_LOG: false]
[APPS_DB_CONNECTION_URL: jdbc:oracle:thin:@adczab12.us.oracle.com:1522:adczab12]
[SRC_METHOD: publish] [APPS_SOURCE:
crmCommon.workMgmt.core.publicModel.common.util.OwnerModuleFilter.setProductInApplSes
sion] [APPS_THREAD_NAME: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default
(self-tuning)'] [APP: EarMarketing#V2.0] [APPS_TERRITORY: US] [APPS_SESSION_ID:
8EC3A5285F11D0C9E04014905FC448BC] [APPS_ROLE_IDS: ANONYMOUS_ROLE_GUID]
[APPS_USER_NAME: SALES_ADMIN] [APPS_USER_ID:
C207BB06AFF8AC902FC7F9803EB6EB49] [APPS_PRODUCT: MKL] [URI:
/marketing/faces/SalesCampaignDashboard] Exiting with ()
[2010-08-26T18:01:02.006-07:00] [MarketingServer_1] [TRACE:16] [] [oracle.apps] [tid: 11]
[userId: SALES_ADMIN] [ecid: 004ZgE_z231EkJQRyaz0D00003kc000MUu,0:1] [SRC_CLASS:
oracle.apps.fnd.applcore.log.AppsODLHandler] [APPS_AUTO_LOG: false]
[APPS_DB_CONNECTION_URL: jdbc:oracle:thin:@adczab12.us.oracle.com:1522:adczab12]
[SRC_METHOD: publish] [APPS_SOURCE:
crmCommon.workMgmt.core.publicModel.common.util.OwnerModuleFilter.doFilter]
[APPS_THREAD_NAME: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-
5EB601C9CF9A5923C809AB4F2D25E039, E09FA5EB2ABDF4507ED4CAB5E9928390,
3C752E905C29E9B309976AEDC1A8EF5E, 732F3EBDF318FEE4D0E1A6BCB8B0807B] [APPS_USER_ID:
C207BB06AFF8AC902FC7F9803EB6EB49] [APPS_USER_NAME: SALES_ADMIN] [URI: /mktDialogs/DialogService]
@Parameters - dialogId: 100000017423043
Another Option using Secured WebServices Tester :1. Enable logging for the User ie SALES_ADMIN which will be used for Dialog Webservice
2. Launch URL for SecuredService Tester
http://130.35.106.75:8090/SecuredServiceTester/
3. In the WebService URL Enter http://adczab14:40630/mktDialogs/DialogService
4. In the Username Enter SALES_ADMIN
5. In the Password Enter Welcome1
6. In the Input Payload Enter
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body
xmlns:ns1="http://xmlns.oracle.com/apps/marketing/coreMarketing/dialogs/dialogService
/types/">
<ns1:getDialogs>
<ns1:dialogId>100000017423043</ns1:dialogId>
</ns1:getDialogs>
</soap:Body>
</soap:Envelope>
7. Press the Invoke Button which will call the WebService and you will see the Output
Payload
8. Verify the Logs by EM or on server (make sure the URI: /mktDialogs/DialogService ).
( NOTE : Use the URL and details as done earlier)
BCC60B58F8B6E2CC27ED3228C8C67109, F97375E70E0A9294D27E3490E33886CF,
65D86186CBA1360E8AFFF209F2DAAC0D, D7C7A49F2DA7F4CEFB330FF3ED9E5ACD,
14D2A3400C7E8F4D1CE4FE39AB522754, 3F3143D28B71B4BE956B91F7431AD173,
E3D0AC262A18967C57E418E29F76B897, 6C13B16E99BAD61820A5F7FF59D36BCB,
83A6528B846AF8CB7BC6D8ED69809879, 89FA41CBACBE5C48E04014905FC45AC9,
A77FE23C03C28A48650D34A2204DEF08, E513BEF19F07A2B569E75830F6843E71, 6A61B6EFE86126946A9C5C60951B8092,
8FC9B3BFB7872942D5184AE47811D20B, DE2EF4EA3265C4D52EB57CBA6F4F7F0B,
88368F2B00C3AE8B85C40F39AB0846F7, 87CB2F3675399B0B8C57AFC1B4A075FA, 73E87EC43381B7D78BAD46248007F330,
7B1BF77520376142A632887D522B8BCA, AE6AFC84D95F8E998FFAF5E0B13C73F3,
DE7867D444C846B72919C2EC1639CFD3, 907D602CFC65CDD06737A0B55AAEEF55,
F784EF9D1197423DD61DB28763E2C5B8, 7AEFEEF52BCAE8D108C32F5E0BFF234B,
55DBAE2F2A5BB54D18B46FC5100D9D56, CB012FEE09D29A4C3B90D3D8F2F0FF70,
F54DCE629C0A0445B6149FD4DF71AAF2, 6E68A131126DD4D889BE4E4B8F1DA266,
77530D6FD31497D41F1427AC5E502D71, 2D90A8171CCF4A75C655B75C1BA56D71,
89FA41CBACBD5C48E04014905FC45AC9, B64280EC670F3CEA8E729ED55B3FF0D5,
E4A500007F721B99E30362541D4F7D09, 7F8C1467B72747B1B73A3F70F95526D4, 4BE15A276E0DDDB0A8A2593AC049C7C8,
F8375ACB55BD4CA5AE5DBA1975A9F491, 7C2219AF723741650E5D1D3D576FDC50,
84479391CC3F3F9F65286407985FEAB5, 7C2C5C6D69E386395155EDD3D0753B6F,
CEAC546EA03B6131685D34B92FED9ECC, 7930B04A6FE673C25B8EA7CA989E165E,
619402D2E04B3ED636E4578885931D6D, F122B7635F0328AA382D5DD80FA999E1, 9A63CA50ECC2A0C058D10990F1386F86,
2640CC2A3FB922F8ADFC4407E1E04038, 662B9DFCECB1C8A9BF86E719017E09D0,
E09FA5EB2ABDF4507ED4CAB5E9928390, 5EB601C9CF9A5923C809AB4F2D25E039,
732F3EBDF318FEE4D0E1A6BCB8B0807B, 3C752E905C29E9B309976AEDC1A8EF5E] [APPS_USER_ID:
C207BB06AFF8AC902FC7F9803EB6EB49] [APPS_USER_NAME: SALES_ADMIN] [URI:
/marketing/faces/SalesCampaignDashboard] ***** Status Set to ACTIVE for StageExecutionId = 100000017423051
For the above Flow it executed the
From the EM
Search for PartyHirerarchyAudit Process and select the Job Parameters as below
Then Click OK to go back and do a Search and await to see it in Succeeded Status
5. Login to the Database Server and View the Log as explained earlier ie
/tmp/mylog.log ( DB
Sample Line
[2010-08-30T23:51:23.2547-07:00] [apps] [TRACE:32] [] [hz.plsql.HZ_PARTY_TREE_AUDIT] [APPS_USER_ID:
52B16A28D5463B9B1E5FF00D3D6DE655] [APPS_USER_NAME: FUSION_APPS_CRM_ESS_APPID] [APPS_ROLE_IDS:
B3EAB96327AE3204879490F87AA7FDE258BCB56BC4355120CC9EA37381DCF1D18351DA279922388FE04014905FC432B0D7
369A98F32454E6A6DCDCB75EE57BDEE10F979EBCB2EFCFE1ED96CE5C69BBA3956121F3D18C9FBF3A555E28BC2FCC52E
C3BB8A7FDAEC31041F50CEFBD61CEF2D9DD045252D105EF58538400F878783450242EFF2D1E95AAEF315C9DA374566E35
DB256AD26C8BCDC5CB491CEA52D249ABDC589B8F6E03639BDFAA2E97C4C5D1118BE2813AB6C8ADD2D867836A4ECB67
2993B3D589705CF177BFE67A6279224FE0176AE4B34578054A59875BD0FD8A81D72A1B807135E0A9B69280B9762C8804F63
A25947A1347ED081F00D612A5E57FCEA2F68750E9BA3AB7BD49C0DA820C94D2EAB947088B4BD6EB6F0D5F068D7E3E25F
339C52C6CD304DF4EE84F262736BE6D84EBA785A38FC0FBBD7B4845BF55CBB3DF4B76217EF7BA0CF2B682125B2B19A48
66B76F4F321D0B44800E3D45CFF7B76AE3D452CA2392A137EC4FBFD3B8D03C529A4647E78F257BE3E277501A512D93B60
B0CE7890E7E637C0F2DA9593726AEB50673A0047C8BB9BF1E53F8A2E05EC447232C6FD199B349EF89A14B09337762CA8D
8217E6BE0E3FFF65FB65EF95B029BD547587BA25B8976458543268C0BC563E5519F37E1CFBAD46E00AC73DEE489A02267A
BB367342004964A0E1160F2518EFC0101B11D75F86887D20FD736BECCB4C3FD786001F1ED627C655E3A09E026E024FE8C9
BD4B29089B674B5C23033684D2F5F1D32E4DCCDA0F6818E93A6B512AUTHENTICATED_ROLE_GUIDF7E5BBD754587C92B
5E0D53970E8A3C6BCC60B58F8B6E2CC27ED3228C8C67109F97375E70E0A9294D27E3490E33886CFD7C7A49F2DA7F4CEF
B330FF3ED9E5ACD2AF9EA785763133B6FC1CF986CDE81BA98EBDF7D23B3EE908C7C1C4E3E976DF514D2A3400C7E8F4D
1CE4FE39AB5227543F3143D28B71B4BE956B91F7431AD173E3D0AC262A18967C57E418E29F76B8976C13B16E99BAD61820
A5F7FF59D36BCB91C2B5A1EB07CA03F722687046B7F825835BC13BB678EAF551CD7F5A96A6B919E513BEF19F07A2B569E
75830F6843E715E5E1A67BA9B40374689B5E48657A1416A61B6EFE86126946A9C5C60951B80928FC9B3BFB7872942D5184A
E47811D20BA9946E43D12B9A269F48AFBD17EE006DDE2EF4EA3265C4D52EB57CBA6F4F7F0B3781D84C425592B26EDAB2
630989D87488368F2B00C3AE8B85C40F39AB0846F773E87EC43381B7D78BAD46248007F3307B1BF77520376142A632887D5
22B8BCAA01AAC1CFD52D37CC0A27F52489E3F848BBBE46DA789A579B7C5129308C27D51AE6AFC84D95F8E998FFAF5E0B
13C73F3DE7867D444C846B72919C2EC1639CFD3A5F5826B5AB40B6081CBD6C0C6505696D1681AF88F1DB8CC619A9B9A78
BA5FE4F784EF9D1197423DD61DB28763E2C5B87AEFEEF52BCAE8D108C32F5E0BFF234B2FCFF263E867423C7BB80822FE
80F8A31ABF27CCECA6098CC4BB7A6901BFBD9955DBAE2F2A5BB54D18B46FC5100D9D56F54DCE629C0A0445B6149FD4D
F71AAF2B02CFC7A0199A44C4A1E18D1C7DD6CBA84896AFD2586DFBE780118516090044D1030F13AC14E9D7C987D8620C
DAB10C32D90A8171CCF4A75C655B75C1BA56D7188FF1916DA1D91F7D6C9E5D2082C6C907F8C1467B72747B1B73A3F70F9
5526D44BE15A276E0DDDB0A8A2593AC049C7C8F8375ACB55BD4CA5AE5DBA1975A9F49184479391CC3F3F9F65286407985
FEAB57930B04A6FE673C25B8EA7CA989E165E606386244C290CFF6F80540C2EFF4A86F122B7635F0328AA382D5DD80FA99
9E122BE583F735460B57860EE71AD349DED9A63CA50ECC2A0C058D10990F1386F8605AC72A7BD0C1415F2B8838C96D380
DC61545F1059861BE75E83FAFC709E4EDB662B9DFCECB1C8A9BF86E719017E09D02640CC2A3FB922F8ADFC4407E1E040
38E09FA5EB2ABDF4507ED4CAB5E99283905EB601C9CF9A5923C809AB4F2D25E03922ADF4FF12502C7DA99E0114D491679
2407860E79801E263E786D7D83528F0F58B6ADB8B9ED009A1C193129D055C906D3C752E905C29E9B309976AEDC1A8EF5E