How to collect debug logs for custom module only in EBS by AppsLog.write?

Hi,
Customer is trying to retrieve logs for their custom module (XXKCZ) and
put it to /log/kcz.log by using AppsLog.write() method. (refer to sample code below)
Customer has set these profile values in the application level and removed the values
in the site level. But the file /log/kcz.log is created but does not have any lines in it.
Is there something wrong to the coding of AppsLog.write?
Application Name "xxkcz"
 FND: Debug Log Enabled "Y"
 FND: Debug Log Module "xxkcz%"
 FND: Debug Log Level "UNEXPECTED"
 FND: Debug Log Filename "/log/kcz.log"
 ---- [Sample Code starts] ----
 Package jp.kaikei.oracle.apps.xxkcz.util.server;
 import oracle.apps.fnd.common.AppsContext;
 import oracle.apps.fnd.common.AppsLog;
 import oracle.apps.fnd.common.Log;
 public class CommonLog{
 public void initLog() {
 AppsContext appsCtx = new AppsContext();
 AppsLog appsLog = appsCtx.getAppsLog();
 appShortname = "xxkcz"
 message ="Message started"
 CLASS_NAME = "jp.kaikei.oracle.apps.xxkcz.util.server.CommonLog";
 String moduleName = appShortName + "." + CLASS_NAME + ".initlLog;
 appsLog.write(moduleName, message, Log.UNEXPECTED)
 ---- [Sample Code ends] ----
Any advise?
Thanks.

May be some initialization is missing,
I have created my own writetoFile method,
if you want you can try this,
* Method to write the debug messages into a File
public void writeFile(String debugMsg, String userName)
String logDir = (String)this.getOADBTransaction().getProfile("XXPO_OA_PDT_PDT_DEBUG_DIR");
BufferedWriter out;
//DateFormat dateFormat = new SimpleDateFormat("dd-MM-yyyy HH:mm:ss");
Date date = new Date();
// if(logDir ==null)
// logDir = "/ebsgld/ebsgldcomn/temp/";
String fileName = logDir+userName+"-pdt_log.log";
//createDiag(XXPO_APP_SHORT_NAME,"[AM]fileName "+fileName);
try
out = new BufferedWriter(new FileWriter(fileName,true));
out.write("\n\n" + debugMsg);
out.close();
} catch (IOException e)
//System.out.println("exception in Writing the log file "+e.toString());
//createDiag(XXPO_APP_SHORT_NAME,"[AM] Exception in Writing the log file "+e.toString());
//Only start and end file
if(debugMsg.indexOf("##########")!=-1)
String impFileName = logDir+userName+"-pdt_imp_log.log";
// System.out.println("File Name is "+fileName);
try
out = new BufferedWriter(new FileWriter(impFileName,true));
out.write("\n\n" + debugMsg);
out.close();
} catch (IOException e)
createDiag(XXPO_APP_SHORT_NAME,"[AM] exception in Writing the log imp file "+e.toString());
With regards,
Kali.
OSSI.

Similar Messages

  • How To Generate Debug Log Files for ebs jsp?

    hi   How To Generate Debug Log Files for ebs r12 jsp?
    and where i get the log .please help me thanks!

    Please check following MOS Document
    Oracle Application Server Diagnostic Tools and Log Files in Applications Release 12 (Doc ID 454178.1)

  • FND_PRODUCT_INSTALLATIONS TEMPORARY_TABLESPACE IS NULL FOR CUSTOM MODULE

    We have 11.5.10 ERP system for production use. But FND_PRODUCT_INSTALLATIONS TEMPORARY_TABLESPACE IS NULL FOR CUSTOM MODULE. All seeded modules are using TEMP.
    What are the ramifications for this.
    We have 'Change control' process in place. We can not update the table on fly. We need proper justification.
    Please help me understand, how this table drives Oracle applications and its performance.
    Thanks you all. in advance.
    Gopala Medapuram

    I agree with Hussein - we have several custom schemas that are registered in FND_PRODUCT_INSTALLATIONS, some of which have the tablespace info correctly filled out while others do not. All of our customizations in all these custom schemas are working as expected. So if your customizations are working as expected, I would not worry too much about it.
    HTH
    Srini

  • How to get change log for z-fields in VBAk(Sales order)

    Hi All,
    Please help me in this.
    My requirement is get the change log for z-fields in sales order.
    In the sales order header level we have one tab Additioanl data.
    In this we have z-fields, if we change any of the field value, it is accepting the same and updating in data base as well.
    But it is not appearing in change log<. I.e. Environment->changes.
    How to get the change log for the z-fields.
    In data element level enable the check box of change document.
    Please help me in this.
    Thanks in advance
    Jaya,G

    Hi Jaya,
    For this you need to do some coding. Here is a link which tells you, step by step procedure how to activate Change log for the Z tables.
    THe Object that you need to use for Sales Document   is VERKBELEG
    [https://wiki.sdn.sap.com/wiki/display/ABAP/Maintaining%20Change%20Log%20for%20Database%20Tables]
    Hope this helps..
    This is Primarily a Technical Consultant Job. Take his help before you make any changes.
    Thnks
    Srini

  • Change Log for Custom fields

    Hi All,
    I need the change log for custom fields added in BP transaction codes.
    Basically, for tracking the changes of master data in CDHDR and CDPOS tables we will enable the checkbox of dataelement related to custom field.
    As for SAP fields in BP transaction code the change history is reflecting in CDHDR/CDPOS tables. i have enabled that for custom fields added to BP transaction code but i could not see the change history for such fields.
    Please let us know if iam missing any other thing?

    Hi Amit Singh,
    Apart from clicking the checkbox in dataelement...
    There are some settings need to be done by BASIS
    and some settings and entries should be made in SCOD t-code
    create entriy for change document here..
    also hv a look on below links...
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2a/fa015b493111d182b70000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_erp2004/helpdata/en/db/7a2a40ce93185de10000000a1550b0/content.htm
    Custom Table values in CDPOS and CDHDR
    scdo
    wat do these fields in scdo stand for?
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7

  • How to do delta management for fi module?

    how to do delta management for fi module?

    Hi,
    Take a look on the following help site,It has all most all information about FI extraction:
    http://help.sap.com/saphelp_bw32/helpdata/en/af/16533bbb15b762e10000000a114084/frameset.htm
    With rgds,
    Anil Kumar Sharma .P

  • Can't find the Collective Search help for Customer in VD02/VD03

    Hi
    I ave (I hope ) an easy question for you  - 
    I need to extent the Collective search help for Customer in VD02/VD03 with an additional elementary search help, but I can't find the name of the Collective Search Help (F1 -> Technical Information only gives Search help '=')
    So, where do I find it ?
    Regards
    Morten Nielsen

    OK I Found it  -  Called DEBI
    Regards
    Morten Nielsen

  • How to see debug logging  message on jdeveloper Console?

    How to see debug logging  message on jdeveloper Console?

    The debug info is not even created unless debugging is switched on.
    Adam

  • How to See logs for custom programs from without the logviewer in NWA

    Hello Experts,
    The JavaAS developers want to see the logs for their custom programs from without the logviewer in NWA.
    Do you have any experience or know of any reference materials to instruct them on where to write their logs, and how to configure NWA to see them?
    Thanks
    Jibin.

    Hello Jibin,
    Your developers should familiarize themselves with the Logging Framework of the J2EE Engine.
    Here is the guide:
    http://help.sap.com/saphelp_nw04/helpdata/EN/a2/15ab41d60bcb46e10000000a155106/frameset.htm
    If they use the Logging Framework you would be able to access the logs through NWA.
    Regards,
    Ventsi Tsachev
    Technology Development Support (J2EE Engine)
    SAP Labs, Palo Alto, Ca (USA)

  • How to set DEBUG severity for File adapter in J2SE AE

    Hi,
    Can anyone help me in setting the severity level to DEBUG for file adapter?
    I have tried to set in logging.properties file as given below,
    formatter[Trace]         = TraceFormatter
    formatter[Trace].pattern =%24d [%t] %-6s %l - %m
    log[Trace] = FileLog
    log[Trace].pattern     = swb_%g.log
    log[Trace].limit     = 2000000
    log[Trace].cnt          = 5
    log[Trace].formatter     = formatter[Trace]
    com.sap.aii.messaging.adapter.severity = DEBUG
    logging components
    #com.sap.aii.axis.logs = +log[Trace]
    #com.sap.aii.axis.severity = DEBUG
    #org.apache.axis.logs = +log[Trace]
    #org.apache.axis.severity = DEBUG
    Please correct me if I have did anything wrong and sugest me hot to set the DEBUG level as soon as possible.
    Best Regards,
    Soorya

    Hi Sejoon,
    when we changed the host of XI server in one of our projects one of the things we had to change was the exchange profile entries
    http://server:port/exchangeProfile/index.html
    to see how your adapter engine is configured
    http://server:port/sld
    SLD -> Content Maintenance
    then
    Subset: landscape description
    Class: XI Adapter Framework
    buth check the exchange profile entries first
    Regards,
    michal

  • What will be input for custom module developed for JDBC adapter

    Hi,
    I have a scenario SQLDB -> Xi -> R3 .
    Here I have added a custom module before callsapadapter module.
    As I know the sequence of module calling will be as follows :
    1. Standard jdbc adapter
    2. custom module
    3. callsapadapter
    Standard jdbc adapter has a select query . After that what will be the input format for my custom module .Will it be the xml structure of my source Data type or will it be a resultset or will it be a inputstream(stream of xml fomat????).
    And then in which format i need to generate the output format for CallSapAdapter.
    Regards

    Hello Moni,
    SAP has a wonderful feature in ABAP. There are some Runtime Errors that you can <i>catch</i>. This is somewhat similar to the Exception Handling procedure in Java / C++. So here's how you go about it....
    Sometimes there might some calculations that we do, multiplication , for example, where the result of the arithmetic operation is known only at run-time. And the recepient for this result may not always be of the right type to take the result. Consider the following code:
    parameters a type i obligatory.
    data : b type i,
           c type i.
    b = 99999999.
    ** Assume that the user has entered 99999999 for the value of the parameter a.
    c = a * b.    " 99999999 * 99999999 "
    write c.
    This program will certainly give a short dump saying that there was an arithmetic overflow. But we can actually avoid this Shor Dump and handle the situation quite elegantly. consider the following.
    parameters a type i obligatory.
    data : b type i,
           c type i.
    b = 99999999.
    CATCH SYSTEM-EXCEPTIONS ARITHMETIC_ERRORS = 1.
    ** Assume that the user has entered 99999999 for the value of the parameter a.
       c = a * b.    " 99999999 * 99999999 "
    ENDCATCH.
    if sy-subrc ne 0.
      write: 'There was an arithmetic overflow in the calculation.'
    else.
      write c.
    endif.
    This way you can actually avoid the short dump and make the system set a value for sy-subrc. Based on the avlue of the sy-subrc, you can go ahead with further processing / error-handling, as the case may be.
    Here, ARITHMETIC_EXCEPTIONS is called an <i>exception group</i>. For more information on what other run-time errors can be <i>caught</i>, and What the various exception groups contain, please refer to the online documentation for the CATCH statement.
    Regards,
    Anand Mandalika.

  • See logs for custom programs from without the logviewer in NWA

    Hello Experts,
    The JavaAS developers want to see the logs for their custom programs from without the logviewer in NWA.
    Do you have any experience or know of any reference materials to instruct them on where to write their logs, and how to configure NWA to see them?
    Thanks
    Jibin.

    Hello,
    Via NWA I am not sure it is possible without logviewer, but via Portal you can if you are able to create an application with help of NWDS which will read log from OS level (need to provide path for default trace in your application) show on frontend.
    Then deploy this on portal.
    Regards,
    Abhay

  • How to put debug logs?

    I am building a webcenter portal using Oracle Webcenter 11.1.1.1.5 and deploying on Oracle Weblogic Server 11g. Please suggest what is the best practice to use for application debug logs. Should I use log4j or Apache commons library? Is it possible to manage the logs (enable/ disable/ change severity) of the logs using WLS admin console?

    In a production (or even test environment) you can use the enterprise manager of weblogic to analyse the error log files. I believe this is done by using Log4j.
    For each application you can request the logs based upon severity.
    Here's some information about the weblogic logging system: http://download.oracle.com/docs/cd/E21764_01/web.1111/e13739/toc.htm
    I can't seem to find the documentation about the enterprise manager... I'll see if i can find the documentation and update the post.
    Otherwhise i have written a section about the log files in my book: http://www.packtpub.com/oracle-webcenter-11g-ps3-administration-cookbook/book in the chapter managing webcenter applications. I show how you can analyse and filter messages in the log.

  • FINEST debug logs for ftp adapter

    Hi All,
    How do I turn on the FINEST debug level for ftp adapter in SOA application.
    Thanks

    Not sure you can do it just for file but
    login to EM and navigate to SOA -> soa_infra
    right-click on soa_infra and select logs -> log configuration
    expand oracle.soa
    you will see
    oracle.soa.adapter
    set this to the level you desire
    cheers
    James

  • MacBook Pro (Early 2011) Freeze - How to collect system logs?

    Hello,
    My MacBook Pro (Early 2011) keep freezes at all times and hard reboot is only the available solution at. I'm having this problem from day one and spoke to AppleCare couple of times, but unable to resolve! Is there anyway to collect system logs from MacBook Pro running OS X Lion 10.7.2 to show it to Genius people at local Store?
    Any help would be greatly appreciated! Thanks!

    How to run hardware diagnostics for an Intel Mac
    Boot from your original OS X Installer Disc One that came with your computer.  After the chime press and hold down the "D" key until the diagnostic screen appears.  Run the extended tests for a minimum of two or three hours.  If any error messages appear note them down as you will need to report them to the service tech when you take the computer in for repair.
    Some "common" error indicators:
    SNS - sensor error
    MEM - memory error
    HDD - hard disk drive error
    MOT - fan error

Maybe you are looking for

  • Reason for SOAPFaultException..?

    Hi , The below error is coming while invoking web service . proxy was configured in OSB and have WSDL based web services, for this proxy , correspondinng web service will be invoked based on header values. we have 3 managed instances . when we invoke

  • Data from transaction cubes to text file in bw directories

    hi all i have 2 transactional planning cubes in BW. the data in these cubes in bw needs to be uploaded monthly in to a single text file so that APO system can access the data for some purpose. my question is how to upload the data from transactional

  • Rendering print resolution files -- out of memory, out of luck?

    Hey guys! Trying to render a 7500x5000 pixel image for a print piece. And not surprisingly, I'm getting out of memory buffer errors. Am I just out of luck trying to render something so massive out of AE (until it goes 64bit)? Trying to render just a

  • Cannot open photos from windows files

    Elements loads but does not open the photo I selected; using vista 64 bit; can't see why this is happening now.

  • Ntp server connection

    Hello, have a problem connecting to the ntp server please see below: dslrouter#show ntp associations       address         ref clock     st  when  poll reach  delay  offset    disp ~130.88.203.12    0.0.0.0          16     -    64    0     0.0    0.0