Apps Logger

Embed Size (px)

Citation preview

  • 8/12/2019 Apps Logger

    1/45

    Oracle

    GCS Fusion Applications

    Hands-On Exercise

    Tech 2 : Logging/Tracing

    Fusion Application Logging

    UI / WebServices / ESS

    Document Contact Karanbir Dhillon

    Organization Global Customer Support -FAST

    Version Number 1.0

    Last Revision By Karanbir DhillonKARANBIRD I!!"NKARANBIR D I!!"N

    Total #a$es % &'

    mailto:[email protected]:[email protected]:[email protected]:[email protected]
  • 8/12/2019 Apps Logger

    2/45

    Table of Contents

    Table of Contents............................................................................................................... ......... 2Document Information....................................................................................................... .......... 3

    Fusion Application Logging Configurations.................................................................................. 4

    Fusion Application Logging Configurations in logging.xml........................................................4

    Fusion Application Logging Configurations via E ....................................................... ........... !

    Enabling Fusion Application Logging......................................................................................... "2

    Enabling Fusion Application Logging from Fusion #I........................................................... .."2

    Enabling Fusion Application Logging from $rofile %ptions #I................................................"&

    Enabling Fusion Application Logging from $rofile %ptions Database $L'()L * Anot+er %ption............................................................................................................................................... ",

    -enerating Fusion Application Log Files for Fusion #I....................................................... .......2"

    evie/ Fusion Application Logs.............................................................................................. ..22

    evie/ Fusion Application Logs from E ....................................................................... ......22

    evie/ Fusion Application Logs on (erver....................................................................... ....2&

    evie/ Logs from Log(p0...................................................................................... ............ ...2!

    (cenario ultiple users running Fusion Apps Logging .............................................. ............ ...21

    o/ to get Fusion Application Logging for a specific source co e.............................................2,

    Fusion Application Logging for ADF eb(ervices....................................................................32

    Fusion Application Logging for E(( 5 6ava............................................................................... .34

    Fusion Application Logging for E(( * $L'()L............................................................... ........... 3,

  • 8/12/2019 Apps Logger

    3/45

    Document InformationDocument Participants

    Author(s) 7aranbir D+illon

    Contributor(s)

    Reviewer(s) Approver(s)

    !ene"ited A""ected Or#ani$ation(s) Global Custo%er Support - FAS&

    Revision HistoryVersion Modified

    DateWho Changed

    Section(s)Change Summary

    ' * + , ' 7aranbirD+illon

    All ew .ocu%ent

    mailto:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]
  • 8/12/2019 Apps Logger

    4/45

    Fusion Application Logging Configurations

    Fusion Application Logging Configurations in logging.xml

    Eac+ anage (erver +as logging. xml file in 8 eblogic Domain9'config'fm/config'servers'8 anage (erver :ame9 an t+e AppsLogger Contents arepresent t+ere ie t+e Logger Details an t+e an ler etails.

    Steps to do :-

    ". Login to t+e belo/ mac+ine using $#TT;

    ostname < a c=ab>?

    #ser'pass/or < app">>>'A$$">>>

    2. :avigate to t+e ar@eting (erver logging.xml fol er' s>?'app">>>'Bunerun'install'instance' omains'C Domain'config'fm/config'serv

    ers' ar@eting(erver "

    app">>> a c=ab>? GH c' s>?'app">>>'Bunerun'install'instance' omains'C Domain'config'fm/config'servers'

    ar@eting(erver "

    app">>> a c=ab>? ar@eting(erver "H p/

    's>?'app">>>'Bunerun'install'instance' omains'C Domain'config'fm/config'servers'

    ar@eting(erver "

    3. evie/ t+e logging.xml file

    app">>> a c=ab>? ar@eting(erver "H ls 5ltr logging.xml

    5r/5555555 " app">>> gapp">>> "&3"1 6un "! >?

  • 8/12/2019 Apps Logger

    5/45

  • 8/12/2019 Apps Logger

    6/45

    Fusion Application Logging Configurations via EM

    ". Login to E of Fusion Applications Domain

    +ttp?.us.oracle.com>"'em

    #seri ' $ass/or 5 /eblogic'Bunerun"

    2. :avigate to Farm C Domain5M eblogic Domain 5M C Domain 5M ar@etingCluster5M ar@eting(erver "

    3. T+en go to Log Configuration ie ebLogic (erver 5M Logs 5M Log Configuration

    http://adczab08.us.oracle.com:39001/emhttp://adczab08.us.oracle.com:39001/em
  • 8/12/2019 Apps Logger

    7/45

    4. (ee t+e untime Logger for oracle.apps an see t+e an ler it is using b0 expan ingt+e oot Logger t+en oracle.

  • 8/12/2019 Apps Logger

    8/45

    &. Clic@ on t+e an ler or navigate to Log Files an clic@ on t+e an ler name to seeetails

  • 8/12/2019 Apps Logger

    9/45

    !. Can ma@e c+anges to t+e File (i=eO $at+O etc an clic@ %7 /+ic+ /ill up ate t+elogging.xml as iscusse earlier of t+e anage (erver. (ee Eg t+e File (i=e c+ange

  • 8/12/2019 Apps Logger

    10/45

    to ">> P an max to ">>> P. T+e efault format of %DL is Text can be c+ange toQ L also.

    ()*' : Please do not ma&e changes as +ill a ect others

    If an0 c+anges are ma e an save 0ou /ill a confirmation box.

  • 8/12/2019 Apps Logger

    11/45

  • 8/12/2019 Apps Logger

    12/45

    Enabling Fusion Application Logging

    Enabling Fusion Application Logging from Fusion UI

    ". evie/ t+e (ales Campaign Flo/ Document for Login Details to (ales Campaign # L.

    2. %nce logge in :avigate to elp 5M (upportabilit0 5M (et (upportabilit0 Levels

    3. It /ill pop up t+e (et (upportabilit0 in o/.

  • 8/12/2019 Apps Logger

    13/45

    4. Enable t+e Applications Logging an C+ange t+e Logging Level to save FI:E(T anLogging o ule Ever0t+ing ie R

    ()*' : I already ena!led ignore it

  • 8/12/2019 Apps Logger

    14/45

    &. Clic@ %7 to Appl0 t+e same /+ic+ /ill save t+e Application Logging $rofile. T+is /illenable t+e logging for t+e logge in user onl0.

    !. ;ou nee to Logout of t+e Application an Log bac@ in to get t+e Apps Logger filescreate . Currentl0 in our Env logout is not /or@ing so ma@e sure 0ou close t+e bro/seran /+en 0ou navigate bac@ to t+e (alesCampaign # L 0ou s+oul see login box. :o/

    o an0 activit0 in t+e #I t+e Fusion Application Logging /ill be one in t+e an ler seenearlier.

  • 8/12/2019 Apps Logger

    15/45

    Enabling Fusion Application Logging from Profile Options UI

    ". Login to # L

    +ttp

  • 8/12/2019 Apps Logger

    16/45

    3. (earc+ for t+e $rofile %ption :ame AFL%-R

  • 8/12/2019 Apps Logger

    17/45

    4. E it t+e $rofile %ptions sa0 AFL%- LENEL for (ITEO #ser etc an save an t+en /+en t+e user Logs in /ill get AppsLogger file create in appropriate level. Lets ta@e(cenario /+ere A min /ants to c+ange for t+e user (ALE( AD I: t+e Log level toFI:E(T /+ere as for t+e (ITE t+e Log Level is (evere.

    ()*' : I the option is already set ignore it

  • 8/12/2019 Apps Logger

    18/45

  • 8/12/2019 Apps Logger

    19/45

    Enabling Fusion Application Logging from Profile Options Database PL !"L # Anot$er Option

    Connect to Fusion Database via ()LDeveloper

  • 8/12/2019 Apps Logger

    20/45

    Q :A E KM Q :A EO Q NAL#E KM Q NAL#EO Q LENEL :A E KM Q LENEL :A EO Q LENEL NAL#E KM Q LENEL NAL#E V IF Uv eturnV T E:

    DP ( %#T$#T.$#T LI:EUSv eturn K S WW ST #ESV EL(E

    DP ( %#T$#T.$#T LI:EUSv eturn K S WW SFAL(ESV E:D IFE:D

    *o update the Pro ile using PL,S L or A#L) /L'0'L or 3ser SAL'S/AD%I( to #inest.(ote need the 3ID o the user. It is in P'R/3S'RS ta!le.

    DECLA E Q :A E NA C A 2U2>>V Q NAL#E NA C A 2U2>>V Q LENEL :A E NA C A 2U2>>V Q LENEL NAL#E NA C A 2U2>>V v eturn P%%LEA:PE-I: Q :A E S Q LENEL :A E !AFF?AC,>2FC1F,?>3EP!EP4,S

    v eturn

  • 8/12/2019 Apps Logger

    21/45

    Generating Fusion Application Log Files for Fusion UI%nce t+e AppsLogger is enable for t+e #ser or (ite logout an login again an o t+eFlo/ to create t+e AppsLogger.

    Eg < -oing t+roug+ (ales Campaign Flo/

  • 8/12/2019 Apps Logger

    22/45

    Review Fusion Application Logs

    %evie& Fusion Application Logs from EM

    ". Login to E of Fusion Applications Domain

    +ttp?.us.oracle.com>"'em

    #seri ' $ass/or 5 /eblogic'Bunerun"

    2. :avigate to Farm C Domain5M eblogic Domain 5M C Domain 5M ar@etingCluster5M ar@eting(erver "

    3. :avigate to Nie/ Log essages ie ebLogic (erver 5M Logs 5M Nie/ Log essages

    http://adczab08.us.oracle.com:39001/emhttp://adczab08.us.oracle.com:39001/em
  • 8/12/2019 Apps Logger

    23/45

    4. T+ere 0ou can A fiel s an values an searc+ on essage T0pes an select anunselect Targets

  • 8/12/2019 Apps Logger

    24/45

  • 8/12/2019 Apps Logger

    25/45

    %evie& Fusion Application Logs on !erver

    Login to t+e belo/ mac+ine using $#TT;

    ostname < a c=ab>?

    #ser'pass/or < app">>>'A$$">>>

    :avigate to 5M 8Application eblogic Domain9'servers'8 anage (erver:ame9'logs'apps an t+ere all t+e AppsLogger log files /ill be present

    app">>> a c=ab>? appsH p/'

    s>?'app">>>'Bunerun'install'instance' omains'C Domain'servers' ar@eting(erver "'logs'apps

    app">>> a c=ab>? appsH ls 5ltrtotal 3224>5r/5r55555 " app">>> gapp">>> ">41,,?, Aug "3 "4 ar@eting(erver "5 iagnostic5".log5r/5r55555 " app">>> gapp">>> 224?&"12 Aug 2! "1">5>?52!T"11>H ar@eting(erver "H T ACE>4XgC&o:QlE@6) 0a=>D>>>>3@c>>> %oO>&FC4"A22H

    A$$( %LE ID(< A:%:; %#( %LE -#IDH A$$( #(E :A E1PP>!AFF?AC,>2FC1F,?>3EP!EP4,HA$$( $ %D#CT< 7LH # I< 'mar@eting'faces'(alesCampaignDas+boar H Exiting /it+ UV

    #or 3nderstanding o #ormat o log re er tohttp:,, m+docs.us.oracle.com,docli!s, m+,'12456/21,appsli!7,doc.1111,e12825,sup/logging.htm and Section Log %essage Structure.

    http://fmwdocs.us.oracle.com/doclibs/fmw/E10285_01/appslib7/doc.1111/e10308/sup_logging.htmhttp://fmwdocs.us.oracle.com/doclibs/fmw/E10285_01/appslib7/doc.1111/e10308/sup_logging.htmhttp://fmwdocs.us.oracle.com/doclibs/fmw/E10285_01/appslib7/doc.1111/e10308/sup_logging.htmhttp://fmwdocs.us.oracle.com/doclibs/fmw/E10285_01/appslib7/doc.1111/e10308/sup_logging.htm
  • 8/12/2019 Apps Logger

    26/45

    %evie& Logs from Log!p'

    :avigate to Log(p0 # L +ttp?>"' iag'

    Clic@ on Logs Lin@ ie # L +ttp?>"' iag'Log(p0

    ;ou can see Logs for all anage (ervers in t+e Domain or Filter b0 specific anage (erver.

    Can Limit t+e various Logs file an searc+ /it+in particular files.

    http://adczab08:39001/diag/http://adczab08:39001/diag/LogSpyhttp://adczab08:39001/diag/http://adczab08:39001/diag/LogSpy
  • 8/12/2019 Apps Logger

    27/45

    Scenario ultiple users running Fusion Apps Logging

    All users log files goes in t+e same Log file an /+en searc+ing searc+ for t+eA$$( #(E :A E

    ". Execute (ales Campaign Flo/ /it+ #ser A /it+ Apps Logging Enable

    2. Execute (ales Campaign Flo/ /it+ #ser b /it+ Apps Logging Enable

    3. Tr0 to fin in t+e E or irect logs on servers lines correspon ing to eac+ #ser.

    (ee #ser (ALE( AD I: Log lines

    (ee #ser (ALE( E$ E(E:TATINE log lines

  • 8/12/2019 Apps Logger

    28/45

  • 8/12/2019 Apps Logger

    29/45

    !ow to get Fusion Application Logging for a specific source co"e

    T+e Logging o ule Fiel in (et (upportabilit0 Levels or t+e AFL%- %D#LE $rofileis /+ere nee to set t+e (ource Co e for /+ic+ Logging nee s to be one.

    ". Login to t+e Fusion (ales Campaign #I an t+ere in t+e Logging o ule fiel put t+estring for t+e Co e eg RcrmR an Clic@ %7.

    2. %ptionall0 from t+e $rofiles #iO a t+e #ser an t+e $rofile value RcrmR

  • 8/12/2019 Apps Logger

    30/45

    3. :o/ Launc+ t+e (ales Campaign flo/ an /ill see ver0 fe/ lines gets logge ascompare to R one earlier.

    :o/ if 0ou o t+e Application flo/ t+e AppsLogger file /ill be +ave onl0 /+ere o ules+ave crm in it. (ee sample lines

    2>">5>?52!T"?"".31,5>1>H ar@eting(erver "H T ACED>>>>3@c>>> #uO>H A$$( TE IT% ;< #(H A$$( (E((I%: ID