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.

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)

  • 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 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.

  • How to insert debug messages in a report

    All,
    I am facing a problem with one report in apps environment.
    When I run the sql in toad or when I run the report from reports
    builder I am getting data. But, when I run the same report using
    concurrent program I am not getting any data for the same inputs.
    I am not sure what is wrong. I want to put some debug messages.
    Can you please tell me how to put debug messages in reports?
    Thanks.

    973508 wrote:
    All,
    I am facing a problem with one report in apps environment.
    When I run the sql in toad or when I run the report from reports
    builder I am getting data. But, when I run the same report using
    concurrent program I am not getting any data for the same inputs.
    I am not sure what is wrong. I want to put some debug messages.
    Can you please tell me how to put debug messages in reports?
    Thanks.Please post the details of the application release, database version and OS.
    What is the type of the report?
    Please see the following docs to enable debug/trace.
    How Can Trace and Debug Be Turned On For A Concurrent Request? [ID 759389.1]
    How To Trace a Concurrent Request And Generate TKPROF File [ID 453527.1]
    Thanks,
    Hussein

  • FND: Debug logs

    Hi All,
    In which location FND: Debug logs be available for any of the dev instances.
    Thanks,
    Naresh

    Check FND_LOG_MESSAGES table.
    SELECT log.module , log.message_text message
    FROM fnd_log_messages log,
                fnd_log_transaction_context con
    WHERE con.transaction_id = < request_id >
    --AND con.transaction_type in ( 'REQUEST','FORM','ICX','SERVICE)
    AND con.transaction_context_id = log.transaction_context_id
    ORDER BY log.log_sequence;Please refre the following MOS notes as well:
    How to enable and retrieve FND debug log messages [ID 433199.1]
    How to Obtain Debug Log in R12 [ID 787727.1]
    How to Purge/Troubleshoot the FND_LOG_MESSAGES table [ID 735138.1]
    Cheers,
    ND
    Use the "helpful" or "correct" buttons to award points to replies / Mark the thread as answered, if your question is answered.

  • BPC75NW: How to update DataManager debug log

    Hi Experts,
    I am currently implementing scripts conversions in ABAP.
    Question: Through BAdI, how do I write a warning message in DM debug log indicating the list of dimension member values in the log ?
    Regards,
    Pankaj

    Hello,
    Need to check if the signeddata value satisfies a certain condition. If the value satisfies the condition, do nothing, else write a warning in DM debug log specifying the dim member values copying from the in-scope record into the log.
    Regards,
    Pankaj

  • How to easily export/download "Debugging & Logging Log Files" data?

    In the Debugging & Logging > Log Files screen/page, are there workarounds for easily export/download the data that's listed in that screen? I do not want to download the log. Basically, all I want is the table that shows the File Name, Type Size, and Last Modified information.
    Thank you,
    Charlie

    Not really, but if you copy and paste the table and stick it in ms word or something it will retain its layout, you can then just save it, or just take a screenshot. It all depends on what you planning on using the export for. Why do you need that information specifically, this will depend on the way to do it. If its something you want often and automatically then you can just generate the information yourself using some Coldfusion and the logs directory.

  • How to create different log files for each of web applications deployed in OC4J

    Hi All,
    I am using OC4J(from Oracle) v1.0.2.2 and Windows2000. Now I want to know
    1. how to create different log files for each of my deployed web applications ?
    2. what are the advantages in running multiple instances of oc4j and in what case we should run
    multiple instances of OC4J ?
    3. how to run OC4J as Windows2000 Service rather than Windows2000 Application ?
    Thanks and Regards,
    Kumar.

    Hi Avi,
    First of all I have given a first reading to log4j and I think there will some more easy way of logging debugging messages than log4j (If you could provide me a detailed explanation of a servlet,jsp,java bean that uses log4j and how to use log4j then it will be very helpful for me). The other easy ways (if I am not using log4j) to my problem i.e creating different log files for each of web applications deployed in oc4j are
    I have created multiple instances of OC4J that are configured to run on different ports and so on each instance I have deployed a single web application . And I started the 2 oc4j instances by transferring thier error/log messages to a file. And the other way is ..
    I have download from jakarta site a package called servhelper . This servhelper is a thread that is started in a startup servlet and stopped in the destroy method of that startup servlet. So this thread will automatically capture all the system.out.println's and will print those to a file. I believe that this thread program is synchronized. So in this method I need not run multiple instances of OC4J instead each deployed web application on single instance of oc4j uses the same thread program (ofcourse a copy of thread program is put in each of the deployed web applications directories) to log messages on to different log files.
    Can you comment on my above 2 approached to logging debugging messages and a compartive explanation to LOG4J and how to use LOG4J using a simple servlet, simple jsp is appreciated ...
    Thanks and Regards,
    Ravi.

  • How to enable fnd log in self service page

    Hello,
    In professional forms, we can enable fnd log using the profile options "FND: Debug Log Enabled" to Yes and "FND: Debug Log Level" to different levels.
    Similarly, can we do the same with Self Service page? how and where can i see the log results? Also when i'm running the selfservice page from jDeveloper, is there any possibility to see the entire log?
    I need to track why i'm unable to run a page from jdeveloper and i need to track the log.
    Thank you all for the help in advance.
    kK

    Hi,
    To Enable to Log for a self service page click on 'Diagnostics' link avaible at the Upper Right corner of the page. Now from the Diagnostic poplist select the 'Show Log On Screen' then select the log level and save.
    Now you perform your fucntional steps all the log messages you will be able to see at the bottam of the page.
    Regards,
    Syed.

  • How to get the log information when using a class?

    Hi All,
    I have a simple question, which I don't know how to solve. I am using org.apache.commons.logging.Log and LogFactory to do some logging. A typical situation is exemplified in the following code snippet.
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    class LogClass {
        private static final Log LOG = LogFactory.getLog(AClass.class);
        public void logit(){
            LOG.debug("This is the debugging log.");
    public class AClass{
        public static void main(String[] args) {
            LogClass l=new LogClass();
            l.logit();
    }But this way, I do not get the log information from the class LogClass. Could anybody please help?
    Many thanks.

    jschell wrote:
    jverd wrote:
    ...configuration in log4j.xml or log4j.properties.And far as I recall you need one of those two also. If there is no config then there is no output.I thought it used some default config if no file is present, but I could be mistaken. Either way, it adds to the possible problems that the OP could be having, any of which are consistent with his rather vague question.
    1) He's passing the wrong class to the LogFactory, and hence getting a logger with the wrong name, so he's seeing a different name than he expects in the output that's being produced.
    2) His config file does not contain the proper format to include the actual classname, independent of the logger's name, so he's missing a piece of desired information in each line of the output that's being produced.
    3) His config file indicates a threshold that's less verbose than the level at which his code is logging, so no output is present when he wants it.
    4) His config file is missing (or not where it's expected to be), so no output is being produced at all.
    5) His config file is missing (or not where it's expected to be), so a default level or format is being produced, effectively the equivalent of one of the misconfigurations described in #2 and #3.
    Since the OP seems to have vanished, we may never know.

  • How can i stay logged in on iPhone Skype after i delete the app from the 'current' apps?

    How can i stay logged in on iPhone Skype after i delete the app from the 'current' apps?
    Thanks for ur answers !

    You are correct. There is no other way to recover this material, and yes it would have been a good idea to backup the iPhone prior to the restore. Remember that a restore to a previous date deletes everything on the device and puts it back to the state of things on the date you choose. The texts and contacts would be gone. Did you possibly sync the contacts with a supported application on the computer? That is the only other way to recover contacts. They are designed to be synced with a supported application on the computer, or with a cloud service such as iCloud, Google or Yahoo.

  • How should I debug a PVM that is crashing & rebooting too fast ?

    I have a newly created oel4u6 PVM that appears to be starting but then crashing & rebooting too fast and I don't know how to best debug it. The vm is a P2V'ed oel4u6 HP Blade that successfully boots as a HVM but I can't seem to get it to fully start as a PVM (I have several clones that I am working with to contrast/compare).
    I can't seem to get the console to start fast enough to show me anything useful as the crash is within seconds.
    I likely can flip the VM back to HVMPV mode or HVM and boot to the original kernel but if I boot to another kernel I am not sure what files in the VM (if any) may give any insight on the failed starts/crashed.*
    Anyone have any ideas/recommendations on how to debug this?*
    The message from xend.log is:
    [2013-03-31 07:45:32 3273] WARNING (XendDomainInfo:2131) Domain has crashed: name=0004fb0000060000b0d58463f621a2a3 id=37.
    [2013-03-31 07:45:32 3273] ERROR (XendDomainInfo:2265) VM 0004fb0000060000b0d58463f621a2a3 restarting too fast (Elapsed time: 1.654993 seconds). Refusing to restart to avoid loops.
    [2013-03-31 07:45:32 3273] ...
    More details as to the specific HVM kernel & PVM kernel & the process I used to get the PVM to at least get to load grub are in this thread looking for a good step-by-step guide on the recommended process:
    Good guide to convert oel4 hvm to pvm on OVM 3.2.1 ?

    Choose Utilities from the Finder's Go menu, open the AppleScript Editor, and run:
    do shell script "mv '/System/Library/oldname' '/System/Library/newname'" with administrator privileges
    (126015)

  • 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

  • How do you debug on the ITS?

    Hi,
    How do you debug an ITS application? I am trying to debug a web app, and I know the error is in the ABAP code. I would like to set a breakpoint in my ABAP code, so that when a certain action occurs from the client (web) side, I will jump to the ABAP breakpoint, that way I can step through the ABAP code. Any help would be appreciated.
    Thanks in advance.

    Peter,
    We can achieve this thru ABAP Debugger itself not thru HTTP debugger .
    For example , the ITS Trans you r trying to Debug is PZ13,
    u hva to carry the foll steps ,
    1. Go to SM30 - > T77WWW_SC - > find which function module it points to .. -> Put brk pts ->
    SE93 -> type the transaction - > in the command box give ,
    /h (Turn on Debugger).Run.
    Hope it Helps .
    Regards,
    J

Maybe you are looking for