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.  Alternative log file other than server log

    Posted Thu May 05, 2005 04:41 PM

    Morning, experts,

    Is there any easy way to create log file dedicated to a specific wM application only, rather than using server log (“debug.log” service) file?

    The reason is, we have many wM applications generating server logs, rather than look for data from lengthy server log file, I do want to have the option to create/maintain a dedicated log file for the new application.

    Has anyone done that before? Thanks!


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


  • 2.  RE: Alternative log file other than server log

    Posted Thu May 05, 2005 05:06 PM

    Use the ServerAPI.getLogStream() method. It will create a new log file that is rotated with the other IS log files.

    – Tim


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


  • 3.  RE: Alternative log file other than server log

    Posted Thu May 05, 2005 05:27 PM

    Tim, could you explain how to use it, e.g., from which package…

    Thanks


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


  • 4.  RE: Alternative log file other than server log

    Posted Thu May 05, 2005 05:38 PM

    You have to write Java services to use it (at least as wrappers so that you can call it from flow services). There’s an implementation of it in the AuthLDAP package on Advantage.


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


  • 5.  RE: Alternative log file other than server log

    Posted Thu May 05, 2005 05:39 PM


  • 6.  RE: Alternative log file other than server log

    Posted Fri May 06, 2005 12:17 AM

    Jin,

    Another approach is to create a package with java services that wrap Log4J, Commons Logging or another logging implementation such the one that shipped with JDK 1.4.

    This example is over 2 years old and may need a few tweaks to work with current JDK and Log4J versions, but should give you some ideas on how to do this.

    Tim’s suggestion is great if you want to use the same format and general location as the standard WM logging. If you need to implement a different log message format or add additional behaviors such as logging to a JDBC or JMS datasource, you can configure those behaviors with Log4J Appenders.

    Mark


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


  • 7.  RE: Alternative log file other than server log

    Posted Fri May 06, 2005 03:35 AM

    Jin,

    Besides these suggestions, take a look at WmMonitor. It is WM software package that installs on IS and centralizes logging to a database (so it isn’t a good choice to log a “database connection failure” error ). It can centralize logging for several servers. It has a useful interface (‘Monitor > Services > Search’) to search for errors by type, by service name, server id, context ID and by username. It also has this neat functionality where you can log the entire pipeline of the top level service on failure. The logged pipeline is essentially a testcase and it be resubmitted to a different server (say, to development) right from the WmMonitor interface.

    Sonam


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