psdi.util.logging

Class LoggingService

    • Constructor Detail

      • LoggingService

        public LoggingService()
                       throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • LoggingService

        public LoggingService(MXServer mxServer)
                       throws java.rmi.RemoteException
        Parameters:
        mxServer - The "Server Environment" this Service is being created in.
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • applySettings

        public void applySettings(boolean startup)
                           throws MXException,
                                  java.rmi.RemoteException
        Reload logging configurations from database tables and apply the settings.
        Specified by:
        applySettings in interface LoggingServiceRemote
        Parameters:
        startup - Boolean flag to indicate whether the method is being called when the server is starting up, or from the action menu.
        Throws:
        MXException
        java.rmi.RemoteException
      • getRootFolder

        public java.lang.String getRootFolder()
                                       throws java.rmi.RemoteException
        Returns the root logging folder.
        Specified by:
        getRootFolder in interface LoggingServiceRemote
        Returns:
        The root logging folder.
        Throws:
        java.rmi.RemoteException
      • getLogLevel

        public java.lang.String getLogLevel(java.lang.String logKey)
                                     throws MXException,
                                            java.rmi.RemoteException
        Given a logger by its logkey, return its log level.
        Specified by:
        getLogLevel in interface LoggingServiceRemote
        Parameters:
        logKey - The key uniquely identifies the logger.
        Returns:
        The logger's log level.
        Throws:
        MXException
        java.rmi.RemoteException
      • setLogLevel

        public void setLogLevel(java.lang.String logKey,
                                java.lang.String logLevel)
                         throws MXException,
                                java.rmi.RemoteException
        Sets the log level of the specified logger. Note: This is a web service method and should be used as a web service only. Do not call from Maximo app.
        Specified by:
        setLogLevel in interface LoggingServiceRemote
        Parameters:
        logkey - The key uniquely identifies the logger.
        logLevel - The loglevel to set to thelogger.
        Throws:
        MXException
        java.rmi.RemoteException
      • setReadFromFile

        public static void setReadFromFile(boolean flag)
        Sets the flag which indicates whether the server's logging is read from a properties file.
        Parameters:
        flag -
      • getReadFromFile

        public static boolean getReadFromFile()
        Returns the flag which indicates whether the server's logging is read from a properties file.
        Returns:
        Boolean
      • submitUploadLogRequest

        public java.lang.String submitUploadLogRequest(UserInfo userInfo)
                                                throws java.rmi.RemoteException,
                                                       MXException
        Throws:
        java.rmi.RemoteException
        MXException