IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  customised java logging

    Posted Tue October 03, 2006 07:50 AM

    Hi. i’m running through some customized java codes that has been written by some other else in Developer. Would like to set debug logs or system.out.println statements in the java code, to trace the values taking place in the java code when it’s run.

    Do i just put in system.out.println (variable) in it?
    does anyone knows where do i look for the output, if i insert that line into the java code?


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 2.  RE: customised java logging

    Posted Tue October 03, 2006 11:15 AM

    Hi bluewave2, write the log to a file like this:
    FileWriter logger = new FileWriter(“”);
    logger.write(“Test line”);
    logger.write(“\n”);


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 3.  RE: customised java logging

    Posted Tue October 03, 2006 12:05 PM

    Hi,

    One of the simple way is to put this piece of code in your java service which will display the value in server log…
    Assign your value to message like
    String message = yourvalue ;

    IData input = IDataFactory.create();
    IDataCursor inputCursor = input.getCursor();
    IDataUtil.put( inputCursor, “message”, message );
    Service.doInvoke( “pub.flow”, “debugLog”, input );

    Cheers,
    KK


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 4.  RE: customised java logging

    Posted Tue July 01, 2008 06:17 AM

    In addition to this, can I invoke some service to set the debug level?


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods