Log4j logging unnecessary Logs in a file

Hi All,
I have used Log4j logger to log details in java. I have used debug statements and directed the logs to a file in the server using Log4j.properties file. But, when i check the logs, along with the log statements that i have added in the code, i see lot of unnecessary logs like below. Please let me know how to avoid these logs and get only the logs from my code.
+2010-08-19 23:13:43,825 DEBUG Log4jLogger.debug() -  receiverSubNoType : PREPAID receiverActivationCode : 30+
+2010-08-19 23:13:46,535 DEBUG Log4jLogger.debug() - Blocked packages:+
+2010-08-19 23:13:46,537 DEBUG Log4jLogger.debug() - Pkg 0:381+
+2010-08-19 23:13:46,538 DEBUG Log4jLogger.debug() - Pkg 1:341+
*2010-08-19 23:13:46,542 DEBUG ProjectResourceBundle.handleGetObject() - org.apache.axis.i18n.resource::handleGetObject(transport00)*
*2010-08-19 23:13:46,544 DEBUG Call.setTransport() - Transport is org.apache.axis.transport.http.HTTPTransport@12eac27*
*2010-08-19 23:13:46,544 DEBUG Call.invoke() - Enter: Call::invoke(ns, meth, args)*
From the above logs in the file, the first four lines are from my code, but the rest of the lines, i am not sure and unable to avoid them.
My Log4j.properties file is as below.
log4j.rootLogger = ERROR,stdout,A2
log4j.appender.stdout = org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout = org.apache.log4j.PatternLayout
*log4j.appender.stdout.layout.ConversionPattern = %d [%t] %-5p %c{1}.%M() %x - %m%n*
log4j.appender.A2 = org.apache.log4j.DailyRollingFileAppender
log4j.appender.A2.File = /export/home/oracle/zainsoa/j2ee/oc4j_soa/applications/ccore/ccore/log/zainportal.log
log4j.appender.A2.DatePattern='.'yyyy-MM-dd
log4j.appender.A2.layout = org.apache.log4j.PatternLayout
log4j.appender.A2.layout.ConversionPattern = %d %-5p %c{1}.%M() - %m%n
Please Help!
MJ

Dear Malcolmmc,
Thanks for your inputs. I tried to set the logging level to error as u said. In the httpd.conf file, the loglevel is set to warn. Also, in the log4j.properties file, i have set rootlogger to ERROR as shown below from my log4j.properties.
log4j.rootLogger = ERROR,stdout,A2*
log4j.appender.stdout = org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout = org.apache.log4j.PatternLayout
*log4j.appender.stdout.layout.ConversionPattern = %d [%t] %-5p %c{1}.%M() %x - %m%n*
log4j.appender.A2 = org.apache.log4j.DailyRollingFileAppender
log4j.appender.A2.File = /export/home/oracle/zainsoa/j2ee/oc4j_soa/applications/ccore/ccore/log/zainportal.log
log4j.appender.A2.DatePattern='.'yyyy-MM-dd
log4j.appender.A2.layout = org.apache.log4j.PatternLayout
log4j.appender.A2.layout.ConversionPattern = %d %-5p %c{1}.%M() - %m%n
In my java code, i have used the statements like
Log4jLogger.debug(" receiverContractNo : " + receiverContractNo );
where Log4jLogger is a custom class to handle the logs. I have written following in this class.
logger = Logger.getLogger(Log4jLogger.class);
PropertyConfigurator.configure("log4j.properties");
*public static void debug(String debugStr){*
logger.debug(debugStr);
Please suggest as to where the changes have to be done as i am unable to proceed and still this problem.
Regards,
MJ

Similar Messages

  • Log4j - logging to multiple files

    Hi,
    Is there a way to do this? I have a class in a shared package in which I want to log into a separate log file.
    I'm using the text configuration file - not the xml one.
    I tried this (a suggestion from google):
    log4j.rootLogger = ERROR, WebLog
    log4j.category.se.aftonbladet.elitserien=ERROR
    log4j.category.org.apache.struts2=ERROR
    log4j.category.org.apache=ERROR
    log4j.category.catalia=ERROR
    # An extra category to a log file
    log4j.category.AlternativeLog=A3
    log4j.appender.stdout = org.apache.log4j.ConsoleAppender
    log4j.appender.stdout.Threshold = DEBUG
    log4j.appender.stdout.Target   = System.out
    log4j.appender.stdout.layout = org.apache.log4j.PatternLayout
    log4j.appender.stdout.layout.ConversionPattern = %d{ISO8601} %-5p [%F:%L] : %m%n
    log4j.appender.WebLog = org.apache.log4j.RollingFileAppender
    log4j.appender.WebLog.file = /opt/tomcat/logs/elitserienservice.log
    log4j.appender.WebLog.MaxFileSize=2048KB
    log4j.appender.WebLog.MaxBackupIndex = 5
    log4j.appender.WebLog.layout = org.apache.log4j.PatternLayout
    log4j.appender.WebLog.layout.ConversionPattern = %d{ISO8601} %-5p [%F:%L] : %m%n
    # A3 is set to be a FileAppender which will log all actions in the application.
    log4j.appender.A3=org.apache.log4j.RollingFileAppender
    log4j.appender.A3.file=/opt/tomcat/logs/elitserienservice_alt.log
    log4j.appender.A3.MaxFileSize=2048KB
    log4j.appender.A3.MaxBackupIndex = 5
    log4j.appender.A3.layout=org.apache.log4j.PatternLayout
    log4j.appender.A3.layout.ConversionPattern=%d{ISO8601} %-5p [%F:%L] : %m%nAnd in my class I get my logger like this:
    private static final Logger logger = Logger.getLogger("AlternativeLog");But it doesnt work. All logging still ends up in the 'elitserienservice.log'.
    Any help much appreciated!
    /best regards, Håkan Jacobsson

    log4j loggers/categories are additive by default. If you write a message to the "AlternativeLog" logger, log4j will first pass that message to all appenders that are attached to the "AlternativeLog" appender. After that, log4j will pass that same message to all appenders that are attached to any 'parent' loggers/categories. In your example, the only 'parent' logger above the "AlternativeLog" is the root logger.
    To alter this behavior, you'll need to set the additivity property to false on the "AlternativeLog" logger. Something like this should do the trick:
    log4j.additivity.AlternativeLog=false
    FYI... For better responses to log4j inquiries, you should post your questions to the log4j users mailing list ([email protected])
    http://logging.apache.org/mail-lists.html

  • Multiple deployed modules using log4j log to same file

    We have deployed two modules in ias 6.5 Solaris - moduleA and moduleB. Each of these modules uses log4j to write to a log file - logA and logB. Each module includes logj4.jar in it's WEB-INF/lib directory and the classes are unzipped upon deployment into an org/apache/log4j directory under each module.
    Upon app server startup, neither module is loaded. A request is sent to /NASApp/moduleA. logA is written to as the module is initialized. A request is then sent to /NASApp/moduleB. logB is written to as the module in initialized. A request is then sent to /NASApp/moduleA again. This request should be logged in logA but is instead written to logB.
    This happened in ias 6.0 sp3 as well as ias 6.5.
    An attempt to determine the source of the problem:
    The /APPS/modules/moduleB/WEB-INF/lib/org/apache/log4j directory was removed. This should cause ClassNotFoundExceptions to be thrown when attempts are made to write to log4j from moduleB. The appserver is first stopped, then killed, then started again - neither module is loaded. A request is sent to /NASApp/moduleA. logA is written to as the module is initialized. A request is then sent to /NASApp/moduleB - a request that should result in ClassNotFoundExceptions being thrown because the log4j classes are no longer present in the module's classpath. Instead, logB is written and everything behaves as was described above.
    Based on this test, we believe that the root of this problem is once again a class loader issue. Apparently, the log4j classes are being loaded by a class loader that is shared between both moduleA and moduleB. Normally this would not cause a problem, but in the case of log4j, the target log file is being overwritten and causes the log entries to be shared between the two modules.
    What must we do to remedy this problem? At present, the only fix we know will work is to run a separate appserver instance for each module - a solution that is not acceptable due to the amount of resources consumed by all of the deployed code.

    Hi,
    You are correct it is a classloader problem, in sp4/6.5 you have a separate classloader for each module (war/jar) but all the helping classes inside modules share a single classloader, that's why even after deleting the helping files from ModuleB it was working.
    The remedy to your problem is to create ear module out of those ModuleA and ModuleB and put the helping jar files in both of the ear modules. For ias an ear file is an J2EE application and a separate classloader instance is dedicated to it, it holds true for all the helping classes in the ear module too and the helping classes in two J2EE application (ear module) no longer share the classloader.
    I hope it will solve your problem. For further information regarding classloaders please visit Classloader runtime hierarchy.
    Please feel free to ask further questions.
    Sanjeev,
    Developer Support, Sun ONE Application Server-India.

  • How do I specify the location of log4j.log?

    I want to create the log4j.log file in "C:\TEMP\" for Windows and "/tmp/" for linux. Is there anyway that I can do to that?
    Here is what I currently have for my log4j.properties:
    # SET ROOT CATEGORY PRIORITY TO DEBUG AND ONLY APPENDER TO A1, C1, R
    log4j.rootCategory=DEBUG, C1, R
    log4j.appender.C1=org.apache.log4j.ConsoleAppender
    log4j.appender.C1.layout=org.apache.log4j.PatternLayout
    log4j.appender.C1.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n
    log4j.appender.R=org.apache.log4j.RollingFileAppender
    #Create the file in Windows
    #log4j.appender.R.File=C://TEMP//log4j.log
    #Create the file in Linux
    log4j.appender.R.File=/tmp/log4j.log
    log4j.appender.R.MaxFileSize=15000KB
    # KEEP FIVE BACKUP FILES
    log4j.appender.R.MaxBackupIndex=5
    log4j.appender.R.layout=org.apache.log4j.PatternLayout
    log4j.appender.R.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n
    #log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%nThank You,
    Chris

    Here is another configuration file that uses multiple appenders.
    log4j.rootLogger=debug, stdout, R
    log4j.appender.stdout=org.apache.log4j.ConsoleAppender
    log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
    # Pattern to output the caller's file name and line number.
    log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
    log4j.appender.R=org.apache.log4j.RollingFileAppender
    log4j.appender.R.File=example.log
    log4j.appender.R.MaxFileSize=100KB
    # Keep one backup file
    log4j.appender.R.MaxBackupIndex=1
    log4j.appender.R.layout=org.apache.log4j.PatternLayout
    log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%nIn addition, as the root logger has been allocated a second appender, output will also be directed to the example.log file. This file will be rolled over when it reaches 100KB. When roll-over occurs, the old version of example.log is automatically moved to example.log.1.

  • How to configur log4j logging for weblogic 10.1

    Hi,
    I am tried to set log4j logging for my application running in weblogic 10.1. I set a log4j.properties file and loaded the properties by a servlet. Where its load the properties files and configure it by PropertyConfigurator.
    The same logic has worked out in websphere. But in weblogic, it is not working. I set the server logging and domain logging to Log4j in Admin console. Now it is writing all the log statements.
    If i write a property for a package to Error level and root level is Debug. Its not working, all debug statements are getting written.
    Can you please tell me the steps to configure log4j logging in weblogic 10.1.
    Thanks & Regards,
    Nasrin.N

    Did you manage to get this working?
    If yes ... what did you do?
    I am having the same problem implementing commons-logging with log4j

  • Log4j - logging not working correctly in OC4J

    I am using log4j to log all data from my system, ie. interface data, errors, info, performance data. Interface data going to one file, errors and info to another file, and performance data to another file. I am using the RollingFileAppender to log data into files. I have a wrapper class that is used to call the log4j methods. When this is tested in Jdev- everything works ok. When deployed to the server, my interface data does not get logged but everything else does. The only time that the interface data logs is when that data goes to the console as well as the file. Does anyone know what could be the problem?
    Thanks.
    Chris

    Check all the places where log4j.jar is available. If possible cross check against your earlier environment too. Remove in places where it is not necesary.
    Check out this article also.
    www.oracle.com/technology/tech/java/oc4j/pdf/ClassLoadingInOC4J_WP.pdf

  • Win 2008  WL 10.3.3 stdout appearing in .log and .out files

    Recently noticed a ballooning [ServerName].out file in the logs directory. In weblogic management console I do have it configured to redirect stdout and stderr to weblogic logging (.log file). Both the .log and .out file contain the same stdout/stderr information. I would like to eliminate the .out file if possible (since WL only rotates the .log), but cannot find where it is configured. The managed servers are NOT windows services (no -log option).
    Did not find any logging parameters in JAVA_OPTIONS or paramters in the startManagedSvc.cmd file.
    Is this something needing to be corrected at the application level? (log4j)

    opie wrote:
    Recently noticed a ballooning [ServerName].out file in the logs directory. In weblogic management console I do have it configured to redirect stdout and stderr to weblogic logging (.log file). Both the .log and .out file contain the same stdout/stderr information. I would like to eliminate the .out file if possible (since WL only rotates the .log), but cannot find where it is configured. The managed servers are NOT windows services (no -log option).
    Did not find any logging parameters in JAVA_OPTIONS or paramters in the startManagedSvc.cmd file.
    Is this something needing to be corrected at the application level? (log4j)Depends on what you are actually seeing in those files. Are you outputting log4j messages to a log file AND the console?
    Here is a snippet of the log4j configuration file that denotes writing to the console:
        <appender name="ConsoleAppender" class="org.apache.log4j.ConsoleAppender">
            <layout class="org.apache.log4j.PatternLayout">
                <param name="ConversionPattern" value="%d{yyyy-MM-dd hh:mm:ss} %-5p [%t] - %C{1}.%M -> %m%n" />
            </layout>
          </appender>
        <root>
            <level value="ALL" />
            <appender-ref ref="ConsoleAppender" />
        </root>Edited by: ForumKid2 on Dec 29, 2010 11:36 AM

  • Oracle Daignostic Logging Vs Log4j logging

    Which type of logging is advisable/best for Oracle SOA applications? Oracle Daignostic Logging (ODL) or Log4j logging ?
    Thanks
    Sree

    We have found it better to use ODL logging because of the support of tracking logs using the ECID. This allows logs across multiple components to be followed. Also the ODL logs can be searched and viewed through EM or the plain text log files and can be exported and viewed in JDeveloper offline as well.

  • How to use log4j logging

    Hi all,
    i'm very new to the world of software devlopment.I'm currently working on devloping banking application in JAVA.
    I wanted to log all the exceptions thrown by the code.
    Could any one of you tell me as to how to use log4j logging in my project. Also where to find the jar file. I searched the entire web but i didn't find it anywhere.
    Thanks

    You should find what you need on the Log4j Project Page.

  • Need help with log4j logging tool (org.apache.log4j.*) to log into database

    Hi,
    I need help with log4j logging tool (org.apache.log4j.*) to log into database using JDBCAppender. Have look at my logger code and corresponding log4j.properties file stated below. I'm running this program using Eclipse IDE and it's giving me the following error (highlighted in red) at the end:
    log4j: Parsing for [root] with value=[debug, stdout, Roll, CRSDBAPPENDER].
    log4j: Level token is [debug].
    log4j: Category root set to DEBUG
    log4j: Parsing appender named "stdout".
    log4j: Parsing layout options for "stdout".
    log4j: Setting property [conversionPattern] to [%x %d{HH:mm:ss,SSS} %5p [%t] (%c:%-4L %M) - %m%n].
    log4j: End of parsing for "stdout".
    log4j: Parsed "stdout" options.
    log4j: Parsing appender named "Roll".
    log4j: Parsing layout options for "Roll".
    log4j: Setting property [conversionPattern] to [%x %d{yyyy.MM.dd HH:mm:ss,SSS} %5p [%t] (%c:%-4L %M) - %m%n].
    log4j: End of parsing for "Roll".
    log4j: Setting property [file] to [HelloWorld.log].
    log4j: Setting property [maxBackupIndex] to [10].
    log4j: Setting property [maxFileSize] to [20KB].
    log4j: setFile called: HelloWorld.log, true
    log4j: setFile ended
    log4j: Parsed "Roll" options.
    log4j: Parsing appender named "CRSDBAPPENDER".
    {color:#ff0000}
    Can't find class HelloWorld{color}
    import org.apache.log4j.*;
    public class HelloWorld {
    static Logger log = Logger.getLogger(HelloWorld.class.getName());
    public static void main(String[] args) {
    try{
    // Now, try a few logging methods
    MDC.put("myComputerName", "Ravinder");
    MDC.put("crsServerName", "ARNDEV01");
    log.debug("Start of main()");
    log.info("Just testing a log message with priority set to INFO");
    log.warn("Just testing a log message with priority set to WARN");
    log.error("Just testing a log message with priority set to ERROR");
    log.fatal("Just testing a log message with priority set to FATAL");
    catch(Exception e){
    e.printStackTrace();
    ------------------------- log4j.properties file ------------------------------
    #### Use three appenders - log to console, file and database
    log4j.rootCategory=debug, stdout, Roll, CRSDBAPPENDER
    log4j.debug=true
    # Print only messages of priority WARN or higher for your category
    # log4j.category.your.category.name=WARN
    # Specifically inherit the priority level
    # log4j.category.your.category.name=INHERITED
    #### stdout - First appender writes to console
    log4j.appender.stdout=org.apache.log4j.ConsoleAppender
    log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
    log4j.appender.stdout.layout.ConversionPattern=%x %d{HH:mm:ss,SSS} %5p [%t] (%c:%-4L %M) - %m%n
    #### Roll - Second appender writes to a file
    log4j.appender.Roll=org.apache.log4j.RollingFileAppender
    ##log4j.appender.Roll.File=${InstanceName}.log
    log4j.appender.Roll.File=HelloWorld.log
    log4j.appender.Roll.MaxFileSize=20KB
    log4j.appender.Roll.MaxBackupIndex=10
    log4j.appender.Roll.layout=org.apache.log4j.PatternLayout
    log4j.appender.Roll.layout.ConversionPattern=%x %d{yyyy.MM.dd HH:mm:ss,SSS} %5p [%t] (%c:%-4L %M) - %m%n
    #### CRSDBAPPENDER - third appender writes to the database
    log4j.appender.CRSDBAPPENDER=org.apache.log4j.jdbc.JDBCAppender
    log4j.appender.CRSDBAPPENDER.Driver=net.sourceforge.jtds.jdbc.Driver
    log4j.appender.CRSDBAPPENDER.URL=jdbc:jtds:sqlserver:/arncorp15:1433;DatabaseName=LOG
    log4j.appender.CRSDBAPPENDER.USER=sa
    log4j.appender.CRSDBAPPENDER.PASSWORD=p8ss3doff
    log4j.appender.CRSDBAPPENDER.layout=org.apache.log4j.PatternLayout
    log4j.appender.CRSDBAPPENDER.sql=INSERT INTO LOG (computername, crsservername, logtime, loglevel, threadname, filename, linenumber, logtext) VALUES ('%X{myComputerName}', '%X{crsServerName}', '%d{dd MMM yyyy HH:mm:ss,SSS}', '%p', '%t', '%F', '%L', '%m')
    #log4j.appender.CRSDBAPPENDER.sql=INSERT INTO LOG(COMPUTERNAME,CRSSERVERNAME,LOGTIME,LOGLEVEL,THREADNAME,FILENAME,LINENUMBER,LOGTEXT) select host_name(),'${CRSServerName}${InstanceName}','%d','%5p','%t','%F','%L','%m%n'
    #log4j.appender.CRSDBAPPENDER.sql=INSERT INTO LOG (computername, crsservername, logtime, loglevel, threadname, filename, linenumber, logtext) VALUES ("%X{myComputerName}", "%X{crsServerName}", "%d{dd MMM yyyy HH:mm:ss,SSS}", "%p", "%t", "%F", "%L", "%m")
    ------------------------------- end of log4j.properties file ------------------------------
    Here is the directory structure of my program. My log4j.properties file and HelloWorld.class file are residing in folder HelloWorld\bin.
    HelloWorld\bin
    HelloWorld\lib
    HelloWorld\src
    Please note - The same program works fine for console and file appender when I comment the database appender part in my properties file.
    Thanks
    Ravinder

    try this :
    log4j.appender.PROJECT.Append=false

  • Log4j / Way to use any appender to get log4j logs into java logger logs?

    Hi,
    I've an older component, this use log4j.
    So I wonder if there any way to get log, logged by Log4J, into Java Logger logs?
    Thanks a lot!

    Thanks a lot, but this is not what i ment.
    I use glassfish. Glassfish uses for all log the Java Logger.
    My problem ist, that I have a library, that uses Log4J for logging.
    My current workaround is, to log all Log4J logs to console.
    Glassfish collect all "sysouts" and write them into the jave logger log file.
    But I wonder, if there is another way. I can't find any JavaLoggerAppender or something else.

  • Integrating log4j logging

    I want an EJB to wrap a library which uses apache log4j logging. log4j has
    an adapter to log to different outputs. Has anyone integrated log4j with
    WebLogic's logging?
    Thanks,
    Gary

    If you use the apache commons API, then it will automatically pick up log4j if it's on the class path. Otherwise it will use the logger built into the standard library.
    The tiresome part is actually getting the configuration file set up and accessed. All you need in the code is something like:
    public class A {
       private static Log log = LogFactory.getLog(A.class);
       log.info("This is a log message");
    }You'll generally need a -D parameter to set the logger to point at the appropriate configuration file.
    If you use the standard libraray logger then you can actually change the logger settings dynamically with jconsole.

  • How to log to a file using the log-configuration.xml?

    Hello *,
    I created following log-configuration.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE log-configuration SYSTEM "log-configuration.dtd">
    <log-configuration>
         <log-formatters>
              <log-formatter name="DefaultFormatter" pattern="%25d %-60l %s: %m" type="TraceFormatter"/>
         </log-formatters>
         <log-destinations>
              <log-destination count="10" effective-severity="ALL" limit="1000000" name="DefaultDestination" pattern="FDLB_GUI.%g.trc" type="FileLog">
                   <formatter-ref name="DefaultFormatter"/>
              </log-destination>
         </log-destinations>
         <log-controllers>
              <log-controller effective-severity="ALL" maximum-severity="FATAL" minimum-severity="DEBUG" name="DefaultController">
                   <associated-destinations>
                        <destination-ref association-type="LOG" name="DefaultDestination"/>
                   </associated-destinations>
              </log-controller>
         </log-controllers>
    </log-configuration>
    From a Web Dynpro view I want to use the log-controller. I'm using the default logger:
    Logging location.
      private static final com.sap.tc.logging.Location logger =
        com.sap.tc.logging.Location.getLocation(EinstiegView.class);
    In the wdInit method I want to log a simple message:
      public void wdDoInit()
        //@@begin wdDoInit()
        logger.setEffectiveSeverity(com.sap.tc.logging.Severity.ALL);
        logger.fatalT("test logging to new file logger");
        //@@end wdDoInit()
    I see the message in the defaultTrace.0.log, but my own log file doesn't appear.
    How to address the log-controller of my log-configuration.xml?
    Thanks in advance,
    Jürgen Dufner

    Hi,
    I guess the follwing part of your log-configuration is wrong:
    <log-controller
    effective-severity="ALL"
    maximum-severity="FATAL" m
    nimum-severity="DEBUG"
    name="DefaultController">
    Try to change in log-configuration the value for name in <log-controller> to the start sequence of the packages to be logged. E.g., all our packages should start with com.yourcompanyname.projectname
    To log all messages from classes in these packages make the name = com.yourcompanyname.projectname.
    Hope that helps,
    Regards, Astrid
    Therefore I list

  • Error is not getting logged in error file while running dataload maxl

    Hello All,
    I am running a Maxl to load data in a database which is running fine but noted a weird issue that the errors are not getting logged in error file. Suppose i changed the name of data file then it should give error something like
    ERROR - {Error no.} - Unable to open file {filename} which should be logged in error file but my error file is still empty.
    I am using the Maxl -
    import database {dbname} data from data_file {filename} on error append to "D:/Error/errorfile.err";
    Any inputs please...
    Thanks

    Try to use single quotes and the backslash. It may depend on the operating system and /or the version of essbase used. This is an example from one of my maxls:
    on error append to 'D:\Hyperion\logfiles\myload.err';
    cheers, chris

  • How to get Log and Output File Names for a concurrent request

    Hi,
    I am submitting a concurrent frm OAF with the following code in AM
    try{
    OADBTransaction tx = getOADBTransaction();
    Connection conn = tx.getJdbcConnection();
    ConcurrentRequest cr = new ConcurrentRequest(conn);
    Vector parameters = new Vector();
    parameters.addElement("10");
    nRequestID= cr.submitRequest("CIE","DTFEMP","","",false,parameters);
    tx.commit();
    }catch(RequestSubmissionException e)
    How do i get the handle to log and output files for the abvoe concurrent request ?
    One more thing is there a way where we can evaluate the environment variables
    like in the above example once i get a the request id
    logfile = $APPLCSF/$APPLOUT/"l"+requestID+".log"
    and
    outputfile=$APPLCSF/$APPLOUT/"o"+requestID+".out"
    is there a way i can get the values of $APPLCSF and $APPLOUT from the os ?
    Thanks
    Tom...
    Thanks
    Tom ...

    You can query the Fnd_Concurrent_Requests table using Request_ID, which has the log & out file directory details.
    Hth
    Srini

Maybe you are looking for

  • Web dynpro Application session parameter

    Need pointers   for the following queries: 1.Can I fetch Web Dynpro java application session parameter ? 2.Is it possible to pass the fetched session parameter of a web Dynpro java application to a URL  while creating  an external window ? Regards Ra

  • ITunes no longer automatically searching Grace Note DB

    For some reason my iTunes has stopped automatically searching for song titles in the Grace Note DB. It gets the songs when I tell it to retireve them but no longer does it as soon as I put the disc in the machine. I am running on Windows XP and haven

  • Fail to write the text file

    hi, I met a problem when I try to store data to text file. That's the description: - To read some objects from the binary file - To update object state, do some operations - To output some properties of the object to text format file. That's a part o

  • Hum.... being stupid? can't restart from CD

    right... I think that I am being stupid... Had a mac for a few years now, and there I thought that restarting from the disc would be easy.... I get this weird error on my macbook: Volume Header needs minor repair The volume Macintosh HD needs to be r

  • Database upgrade in Dataguard Broker Environment

    Hi All, OS: Wndows 32 bit DB: 11.2.0.1 We have an upgrade activity due, in this, we have a windows Primary Database and it has 2 Physical Standby databases. There is no concept of Near DR and Far DR. Both the databases are getting sync'd directly fro