Logging variable value to log via Java Invocation

Hi,
I'm trying to log a variable value to log file via Java Invocation.
This are my imports:
  <bpelx:exec import="java.util.logging.Logger"/>
  <bpelx:exec import="java.util.logging.Level"/>
  <bpelx:exec import="oracle.fabric.logging.LogFormatter"/>
  <bpelx:exec import="org.w3c.dom.*"/>
  <bpelx:exec import="oracle.xml.parser.v2.XMLElement"/>
  <bpelx:exec import="java.util.*"/>
  <bpelx:exec import="java.lang.*"/>
  <bpelx:exec import="java.math.*"/>
  <bpelx:exec import="java.io.*"/>
  <bpelx:exec import="oracle.soa.common.util.Base64Decoder"/>If I do this, my bpel compiles fine:
        <bpelx:exec name="Java_Embedding_1" version="1.5" language="java">
          <![CDATA[
              Logger logger = Logger.getLogger("oracle.soa.Logger");
              LogFormatter.configFormatter(logger);]]>
        </bpelx:exec>Now, if I do this (in order to cast the getVariableData(...) to Element or String, to get it logged):
        <bpelx:exec name="Java_Embedding_1" version="1.5" language="java">
          <![CDATA[
              Logger logger = Logger.getLogger("oracle.soa.Logger");
              LogFormatter.configFormatter(logger);
              getVariableData("sendMessage_InputVariable","body","/ns2:sendMessageInput/ns2:invocationId");]]>
        </bpelx:exec>my BPEL won't compile. I get the error
Error(55,33): Failed to compile bpel generated classes.
failure to compile the generated BPEL classes for BPEL process "BPELProcess" of composite "default/JDeveloper_BPEL_Project!1.0"
The class path setting is incorrect.
Ensure that the class path is set correctly. If this happens on the server side, verify that the custom classes or jars which this BPEL process is depending on are deployed correctly. Also verify that the run time is using the same release/version.
Not much help in my scac.log. No error, just warning:
2012-11-13 14:59:40 com.collaxa.cube.CubeLogger info
INFO: LibClasspath=/opt/Oracle_Middleware_Home/jdeveloper/../oracle_common/modules/commonj.sdo_2.1.0.jar:/opt/Oracle_Middleware_Home/jdeveloper/../oracle_common/modules/oracle.fabriccommon_11.1.1/fabric-common.jar:/opt/Oracle_Middleware_Home/jdeveloper/../oracle_common/modules/oracle.xdk_11.1.0/xmlparserv2.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.bpel_11.1.1/orabpel-thirdparty.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.bpel_11.1.1/orabpel.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.bpel_11.1.1/orabpel-exts.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.bpel_11.1.1/orabpel-common.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.bpel_11.1.1/orabpel-validator.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.fabric_11.1.1/fabric-client.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.fabric_11.1.1/oracle.soa.fabric.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.fabric_11.1.1/fabric-runtime.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.fabric_11.1.1/soa-infra-tools.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.fabric_11.1.1/fabric-ext.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.ext_11.1.1/classes/:/opt/Oracle_Middleware_Home/jdeveloper/../oracle_common/soa/modules/oracle.soa.mgmt_11.1.1/soa-infra-mgmt.jar
2012-11-13 14:59:40 com.collaxa.cube.CubeLogger info
INFO: validating "BPELProcess.bpel" ...
2012-11-13 14:59:41 com.collaxa.cube.CubeLogger warn
WARNING: CubeProcessor.compileGeneratedClasses() classpath is: /opt/Oracle_Middleware_Home/jdeveloper/jdev/extensions/oracle.sca.modeler.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.fabric_11.1.1/fabric-runtime.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.mgmt_11.1.1/soa-infra-mgmt.jar:/opt/Oracle_Middleware_Home/oracle_common/modules/oracle.fabriccommon_11.1.1/fabric-common.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.bpel_11.1.1/orabpel.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.mediator_11.1.1/mediator_client.jar:/opt/Oracle_Middleware_Home/oracle_common/modules/oracle.mds_11.1.1/mdsrt.jar:/opt/Oracle_Middleware_Home/oracle_common/modules/oracle.xdk_11.1.0/xmlparserv2.jar:/opt/Oracle_Middleware_Home/oracle_common/modules/oracle.xdk_11.1.0/xml.jar::/home/veronica/myProject/myProject_Repozytorium/Asynchronic_BPEL/JDeveloper_Asynchronic_BPEL/JDeveloper_BPEL_Project/SCA-INF/classes:/home/veronica/myProject/myProject_Repozytorium/Asynchronic_BPEL/JDeveloper_Asynchronic_BPEL/JDeveloper_BPEL_Project/SCA-INF/classes:/home/veronica/myProject/myProject_Repozytorium/Asynchronic_BPEL/JDeveloper_Asynchronic_BPEL/JDeveloper_BPEL_Project/SCA-INF/gen-classes:/opt/Oracle_Middleware_Home/jdeveloper/../oracle_common/modules/commonj.sdo_2.1.0.jar:/opt/Oracle_Middleware_Home/jdeveloper/../oracle_common/modules/oracle.fabriccommon_11.1.1/fabric-common.jar:/opt/Oracle_Middleware_Home/jdeveloper/../oracle_common/modules/oracle.xdk_11.1.0/xmlparserv2.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.bpel_11.1.1/orabpel-thirdparty.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.bpel_11.1.1/orabpel.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.bpel_11.1.1/orabpel-exts.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.bpel_11.1.1/orabpel-common.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.bpel_11.1.1/orabpel-validator.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.fabric_11.1.1/fabric-client.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.fabric_11.1.1/oracle.soa.fabric.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.fabric_11.1.1/fabric-runtime.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.fabric_11.1.1/soa-infra-tools.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.fabric_11.1.1/fabric-ext.jar:/opt/Oracle_Middleware_Home/jdeveloper/soa/modules/oracle.soa.ext_11.1.1/classes/:/opt/Oracle_Middleware_Home/jdeveloper/../oracle_common/soa/modules/oracle.soa.mgmt_11.1.1/soa-infra-mgmt.jarIs it missing something? What it is missing?

Actually I got it to work, and I'm not sure why it hasn't worked before.
Where are the compiler complaints stored?

Similar Messages

  • Render html form & send forms's input values as params via HTTP POST

    Hello,
    I'm using appache commons http client to send HTTP post queries to a given url and receive HTTP response then process it.
    one of the requirements of my Application is the following: one of these HTTP Post requests is supposed to return an HTML form with different html types (text filed, text area etc..) that i will need to display in my swing application. one important requirement is that i can't know in advance what the html form field types will be.. it depends on a given parameters that my application send as part of HTTP Post method (using apache http client).
    I Longly searched for a simple solution to this problem . There are many solutions but each one has it's limitations :
    1-i can render the html form inside a JEditorPane .but how can I collect the user entered data inside JEditorPane ? i'm not sure this swing component offers the capability to detect its html contents and more it will be difficult to know what are the values entered by user inside html form rendered by JEditorPane.
    2-are there any Java Embedded browsers that offer some API to enable me detect the html form fields ,capture the data entered by user inside the html form ?
    3-the solution i currently opted for is : parse html & convert html form to swing dialog. currently this solution i use works well but the cost of implementing it is high : it involves difficult parsing logic. this makes me worried .I'm not sure if i'm now using the right & easiest solution.
    I need some advice on What is the simplest and clean solution to render a html form & yet be able to collect user entered inputs & send the user input values as params via java HTTP POST request ?

    dragzul wrote:
    In my opinion, your actual solution is what you need to do. You're trying to "merge" two different kinds of view. Actually, the "easiest" way may be: if you have your data to display, you decide to show it on html or swing.Yes i believe that my current solution may be the unique one for my special requirements. when doing research about this problem i found a multitude of java libraries to convert xml to swing (ex: www.swixml.org) .However i was surprised there are no java libraries to convert HTML forms to swing dialogs -as far as i know-. this is a bit strange. The Limitation is that the developers of the server API are not Java guys and are reluctant to use an xml format that i can easily convert to swing . probably they have their own reasons as they might be using the HTML Response for some other server side work. So I was obliged to deal with an HTML stream that i need to display in my client application and process its data. in my opinion the only way to do this is by developing a HTML form to swing converter package. that's what i did now. i was only worried if i'm complicating things and if there are some easier solutions to this issue.
    thanks

  • Additional Results Custom Step using Variables in Name and Value to Log expressions?

    I am trying to create a Custom Step Type for logging additional results - requiring a single Name and Value data pair included in the step.
    I want to pass the name and value data in using two specific variables.
    This functionality can of course be explicitly coded on a test step without problem, but I can't find a way to create a custom test step which inserts such a step i.e. automatically inserting the correct variable names into Name and Value to Log fields.
    Any ideas how to accomplish this? I don't want the custom step users to have to type in the variable names every time they use it.
    I am using TestStand 4.1.1
    Message Edited by CIM1 on 04-20-2009 07:26 AM

    Hi CIM1,
    There are a few ways of doing this.
    The simplest one would be to configure the expression in the Pre-Expression or Post-Expression (depending on whether you would like the Step Type to use the value in the variables or write the value to the variables) and then from here you can lock away the expressions from being edited. The caveat with this method is that you are obviously restricing the Pre/Post-Expressions for the step type. 
    Another Method would be to code some code modules to Write to/Read from the Variables and then calling these in the Steps Pre-Step SubStep or Post-Step Substep. The advantages of this method would be that you can search for the Variable, and if the variable is not present, you could create it before writing to it.
    Hope this Helps.
    Best Regards,
    Steve H 

  • Variable values log

    Hi,
    I'm trying to figure out what variable values users are passing into a query. For example, what ship-to party was specified when the query was run?
    I've tried a trace using RSRTRACE and it isn't obvious to me what values are passed in for the query. How can I do this?
    Thanks.
    Rob

    Hi Rob,
    You can try to find out from the cache in RSRT, or if your users are sending you a workbook, then you can get this info from the hidden sheets.
    Go through this for details:
    Re: Where are the BEx variable stored
    Hope this helps...

  • PL/SQL log messages are not printing from Java concurrent program

    Hi,
    I have a strange issue while submitting the Java concurrent program through PL/SQL.
    I have a PL/SQL concurrent program which will invoke the Java concurrent program inside the package by use of "FND_GLOBAL.SUBMIT_REQUEST". It worked and submitted successfully. From that Java concurrent program we are calling some other PL/SQL packages and printing some log messages over there. But problem here is the request is only printing the Java log messages in view log but not the PL/SQL log messages.  But if I submit the Java concurrent program directly from SRS form at that it is printing both Java and PL/SQL log messages.
    I am just wondering how the log messages has not printed. Please provide your inputs to solve this problem.
    Thanks
    Suriya

    I'm adding log messages in the package body , but these messages are not printing after completion of concurrent prog.
    Any suggestions.
    FND_FILE.PUT_LINE(FND_FILE.LOG,'Data Test :');Do you have COMMIT in your code?
    https://forums.oracle.com/forums/search.jspa?threadID=&q=%27FND_FILE.PUT_LINE%27+AND+commit&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • How to set variables values via VBA.

    Anybody please help.
    How to set variables values via VBA in workbook. SAP Netweaver 2004s.

    Pass variable values with VBA and BI 7.0 funtions to Query
    At first a remark u2013 Iu2019ve read a lot of threads saying that passing values to a query can be done by using VBA code only. Iu2019ve tested it but Iu2019m not sufficient with the new BEX 7.0 API and therefore I use a mixture of BEX 7.0 funtionality and VBA. I create a BEX 7.0 design item button passing the values to a query u2013 I hide this button somewhere on the sheet or on a hidden sheet and I then raise the event to click the button from VBA code. Works fine and the maintenance is easier if something changes in the API in the future again.
    How to start:
    Switch to design mode in BEX Analyzer:
    Implement a BEX 7.0 design item u201Cbuttonu201D
    Click on the button to implement the properties
    Make the input for the commands
    data_provider = dataprovider_1
    cmd = process_variables
    subcmd = var_submit
    No comes the part with the variables u2013 Letu2019s assume a query has 4 variables but you only want to change 1 with the button u2013 an organizational unit for instance.
    Make a range somewhere in the excel with the following structure:
    Name    Index   Value
    VAR_NAME_1      1       Variablename
    VAR_VALUE_EXT_1 1       variablevalue
    Value should contain the name of your variable of course and u201Cvalueu201D the value of your variable
    Set a name for this range with EXCEL functionality but without the header:
    Back to the properties of the button: Insert the name of the range with the variables in the field Command Range:
    If you have more variables to process you can of course enhance your Filterrange!
    In the left upper Corner you have a name for your button:
    Now you can raise the button-click in vba like this:
    Application.Run "'" & ThisWorkbook.Name & "'!Sheet2.BUTTON_35_Click"
    regards, Lars

  • How to  pass a variable value into a custom planning function via a web

    Can some one tell me
    How to  pass a variable value into a custom planning function via a web template?
    What are the different types of Planning function parameters available and what is the difference between them?
    Thanks
    babu

    Hi Sutrtha,
    Yeah I got the pop up asking to select the variables used, I have selected ENTITY_ID that was used by the interfaces, but on execution of the package the Scenario did not work as the passeed variable #ENTITY_ID is set to 0 instead of the value I am passing.
    Am I missing something?
    Regards
    B

  • Com.sleepycat.je.log.LogException: (JE 3.3.62) java.io.IOException: No lock

    Hi
    From today on my hosted machine facing issue in starting Integrated weblogic server within Jdeveloper.
    m/c machine is oel5 64 bit.
    jdev version : Studio Edition Version 11.1.1.2.0
    I tried all sorts of trick like chmod 777 -R /tmp removing edit.lok file etc. Finally I completely installed jdev and then reinstalled it, but without any luck.
    Now I am getting below errors:
    During installation below is the warning message:
    ==
    download/ORA11G/jdevstudio11112install.bin
    Extracting 0%....................................................................................................100%
    Mar 19, 2012 3:42:13 AM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
    WARNING: Could not lock User prefs. Unix error code 37.
    Mar 19, 2012 3:42:13 AM java.util.prefs.FileSystemPreferences syncWorld
    WARNING: Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.
    Mar 19, 2012 3:42:43 AM java.util.prefs.FileSystemPreferences checkLockFile0ErrorCode
    WARNING: Could not lock User prefs. Unix error code 37.
    Mar 19, 2012 3:42:43 AM java.util.prefs.FileSystemPreferences syncWorld
    WARNING: Couldn't flush user prefs: java.util.prefs.BackingStoreException: Couldn't get file lock.
    ==
    After running jdev
    ====
    Mar 19, 2012 3:43:33 AM oracle.ideimpl.persistence.BerkeleyDBEnvironment getNameSpace
    SEVERE: Unable to open environment /.jdeveloper/system11.1.1.2.36.55.36/oracle.javatools.cache
    com.sleepycat.je.log.LogException: (JE 3.3.62) java.io.IOException: No locks available
    ====
    Once I try to run the application
    ==
    Mar 19, 2012 3:44:57 AM oracle.security.jps.internal.credstore.ssp.CsfWalletManager createWallet
    WARNING: Cannot persist the wallet. Reason java.io.IOException: No locks available.
    Application Application1 is bound to Server Instance IntegratedWebLogicServer
    Starting Server Instance IntegratedWebLogicServer
    Mar 19, 2012 3:47:39 AM oracle.jps.credstore
    WARNING: Opening of wallet based credential store failed. Reason java.io.IOException: PKI-02002: Unable to open the wallet. Check password.
    Server Instance IntegratedWebLogicServer could not be started: Error starting Server Instance.
    ===
    Any suggestion ..., What might be wrong with my system or configuration. Note that it was working fine till Yesterday.

    I am also facing the same issue in my 64 bit linux machine. Any suggestions?
    Thanks.

  • How to make the Java Logging to create the log file

    Hey,
    I need some help. Below is my code that create a log file for my application however, there is no log file being created when i perform a MarsLogger.log.info("test") in my code for my application.
    * LogManager.java
    * Created on April 10, 2006, 11:42 AM
    package comp1.mars.beans.ejb.util;
    import java.util.logging.*;
    import java.io.*;
    public class LogManager {
    /** Creates a new instance of LogManager */
    public LogManager() {
    protected static Logger getLogManager()
    //String dir = "C:/Sun03/studio5u1_se/appserver7/domains/domain1/server1/logs/an/my.log";
    String dir = "my.log";
    Logger logger = Logger.getLogger("compl1.mars.bean.ejb");
    try {
    // Create an appending file handler
    boolean append = true;
    FileHandler handler = new FileHandler(dir, append);
    //FileHandler(String pattern, int limit, int count, boolean append)
    // Add to the desired logger
    logger = Logger.getLogger("compl1.mars.bean.ejb");
    logger.addHandler(handler);
         logger.setLevel (Level.ALL);
    } catch (IOException e)
    e.printStackTrace();
    } catch(SecurityException se)
    se.printStackTrace();
    return logger;
    }//end of method
    }//end of class
    * MarsLog.java
    * Created on April 10, 2006, 3:24 PM
    package comp1.mars.beans.ejb.util;
    import java.util.logging.*;
    * @author Administrator
    public class MarsLogger extends LogManager {
    /** Creates a new instance of MarsLog */
    public MarsLogger() {
    public static Logger log= getLogManager();
    }

    What is the level of thte handler?
    http://java.sun.com/j2se/1.5.0/docs/api/java/util/logging/Handler.html#setLevel(java.util.logging.Level)

  • When I am logged in to iCloud mail via internet browser, why can't I view my sent emails?

    When I am logged in to iCloud mail via internet browser, why can't I view my sent emails?

    Who is the mail provider, what is the mail client, which version of Windows is this.

  • The letter "G" shows up in the start when I log in to my HTPC via SSH

    When I log in to my HTPC via SSH the letter "G" shows up in the beginning:
    [ Neytiri ~ ]> ssh hund@<IP> -p <port>
    Last login: Fri May 14 08:54:06 2010 from [...]
    G[hund@Fjuppen ~]$
    I dont have this problem when I log in to my server via SSH. I'm using zsh on my workstation and bash on my HTPC and server. If I use bash on my workstation and log in to my HTPC the problem doesnt occur.
    It doesnt causes any problems, but it's disturbing that it's there and that I cant solve it myself.

    I am not sure what the problem is, but I might know where you can start searching for it.
    I have had a similar problem but it was when I tried to convert the official init scripts to C. I got a G at the beginning and It didn't seem like the utf8 support worked for the console (å,ä, and ö didn't work). The problem that I had was that I couldn't get /etc/profile.d/locale.sh to execute correctly from within the C program, it might be that zsh doesn't execute the locale.sh script correctly. I don't have a solution for the problem since I am still trying to solve it myself.
    Anyway. the script is partly generated from line 372 in rc.sysint (pkg: initscripts 2010.05-3):
    echo 'if [ "$CONSOLE" = "" -a "$TERM" = "linux" -a -t 1 ]; then printf "\033%%G"; fi' >>/etc/profile.d/locale.sh
    The generated /etc/profile.d/locale.sh looks something like this (it may of course look different but that depends on the utf8 and locale settings in your rc.conf):
    export LANG=sv_SE.utf8
    if [ "$CONSOLE" = "" -a "$TERM" = "linux" -a -t 1 ]; then printf "\033%%G"; fi

  • Unable to see local variable values when debugging java

    Hi,
    I am using JDev 10.1.2 with java version 1.4.2_04.
    I have been using JDev to debug my java programs. But suddenly from this morning I am unable to see local variable values. I am able to see class and instance variables. This has happened to me before and I had restarted my machine couple of time, to get this sorted. But this time, nothing helps. Going thru the forum I found out that Include Debug information (Project Properties -> Compiler Option) need to be turned ON. It is already turned ON for me.
    I would greatly appreciate if you could let me know how to crack this problem.
    Thanks in advance.

    No. The local variables 'used' to show up during debugging. But erratically it doesn't show up local variable values. I had to restart my machine couple of times whenever this happens, inorder to see the local variable values. But this time even restarting doesn't help.
    Is there any preference setup that need to be turned on/off to see local variables?
    Also I can't step into a static method now. Any idea why this happens?

  • Change a SWF's variable value through Java

    Hi, all!
    Does anybody know how to change the value of some SWF (Flash file) variable in Java?
    What I need is to read a SWF that I made, then change a variable value from Java, before I output this SWF.
    I believe this is possible through bytes handling, but I don't know how... Has anybody already done it?
    Thank you in advance!
    CaioToOn!

    See answer about [Transform SWF|http://www.flagstonesoftware.com/transform/index.html] at [http://forums.sun.com/thread.jspa?threadID=5325296|http://forums.sun.com/thread.jspa?threadID=5325296].

  • Log History Value

    Hi,
    What is the parameter name in init.ora to set log history value?
    What is the default value for it?
    Thanks,
    Kavitha

    In my standby database I queried for MAXLOGHISTORY value
    SQL> Select '--> MAXLOGHISTORY ' || records_total
    2 from v$controlfile_record_section where type = 'LOG HISTORY';
    '-->MAXLOGHISTORY'||RECORDS_TOTAL
    --> MAXLOGHISTORY 46740
    I wnat to decrease this value.

  • How to log exceptions and imp logging info in Portal Service via ILogger?

    Hi Experts,
    I m trying to use ILogger for my application.
    Information about my application:
    I have created a Portal Service and exposed it as a Web Service which is deployed as a PAR file on to the SAP J2EE Engine.
    I need to use the Logging facility of ILogger in this Portal Service.
    I have written the following code in the Init() function of the Portal Service
    public void init(IServiceContext serviceContext)
           mm_logger = serviceContext.getLogger("com.persistent.pankaj");
    I have put the logger.xml in the logger folder of PORTAL-INF
    my logger.xml is as follows:
    <Server>
    <Logger name="testLog" loggerInterface="com.sapportals.portal.prt.logger.ILogger" locationName="com.sap.portal.testLog" pattern="%d # %20t %15s %m #" isActive="true">
    <LoggerClass className="com.sapportals.portal.prt.logger.SimpleFileLogger" level="INFO">
    <param filename="logs/com.persistent.pankaj.log" append="true">
    </param>
    </LoggerClass>
    </Logger>
    </Server>
    On deploying my portal service as a web service
    I m unable to get the logs.
    I even dont know where will i get the log file, means wat is the exact location where i can check my log results
    I m a newbie for this
    Please help me out
    Help will be rewarded n appreciated
    -pankaj

    Hi Pankaj,
    In your init method try this code to create the logger:
    ILogger logger = PortalRuntime.getLogger("testLog");
    In your logger.xml the logger name was testLog and not com.persistent.pankaj so while creating logger you should use testLog in the above code.
    By default all the logs are written to defaultTrace.log files, to check them read this:
    Portal Runtime Logs
    If you want to log in a seperate logfile then you should set a seperate log destination, which is not recommended on productive systems due to performance problems.
    Also read these to know how to set seperate log destinations:
    Netweaver Portal Log Configuration & Viewing (Part 3)
    Netweaver Portal Log Configuration & Viewing (Part 1)
    Netweaver Portal Log Configuration & Viewing (Part 2)
    Regards,
    Praveen Gudapati

Maybe you are looking for