Class ZosLog


  • public class ZosLog
    extends Object
    Get z/OS log via z/OSMF restful api
    Version:
    4.0
    Author:
    Frank Giordano
    • Constructor Detail

      • ZosLog

        public ZosLog​(ZosConnection connection)
        GetZosLog constructor
        Parameters:
        connection - connection information, see ZosConnection object
      • ZosLog

        public ZosLog​(ZosConnection connection,
                      ZosmfRequest request)
        Alternative GetZosLog constructor with ZoweRequest object. This is mainly used for internal code unit testing with mockito, and it is not recommended to be used by the larger community.
        Parameters:
        connection - for connection information, see ZosConnection object
        request - any compatible ZoweRequest Interface object
    • Method Detail

      • issueCommand

        public ZosLogReply issueCommand​(ZosLogParams params)
                                 throws ZosmfRequestException
        Issue a z/OSMF log command and return log data.

        If API fails, you may be missing APAR see PH35930 required for log operations.

        Parameters:
        params - ZosLogParams object
        Returns:
        ZosLogReply object with log messages/items
        Throws:
        ZosmfRequestException - request error state