Class LogsHelper

    • Constructor Detail

      • LogsHelper

        public LogsHelper()
    • Method Detail

      • getJettyVersion

        public String getJettyVersion()
        Since:
        0.8.12
      • getUnavailableCrypto

        public String getUnavailableCrypto()
        Since:
        0.9.15
      • getJstlVersion

        public String getJstlVersion()
        Returns:
        non-null, "n/a" on failure
        Since:
        0.9.26
      • getLogs

        public String getLogs()
        Does not call logManager.flush(); call getCriticalLogs() first to flush
      • getCriticalLogs

        public String getCriticalLogs()
      • getLastMessageNumber

        public int getLastMessageNumber()
        Call before getLogs()
        Returns:
        -1 if none
        Since:
        0.9.46
      • getLastCriticalMessageNumber

        public int getLastCriticalMessageNumber()
        Call before getLogs(), getCriticalLogs(), or getLastMessageNumber() Side effect - calls logManager.flush()
        Returns:
        -1 if none
        Since:
        0.9.46
      • clearThrough

        public void clearThrough​(int n,
                                 int crit,
                                 long wn,
                                 long wts,
                                 String wf,
                                 String consoleNonce)
        Parameters:
        n - -1 for none
        crit - -1 for none
        consoleNonce - must match
        Since:
        0.9.46
      • getServiceLogs

        public Object[] getServiceLogs​(StringBuilder obuf)
        last line number -1 on error
        Parameters:
        obuf - out parameter
        Returns:
        Long timestamp, Long last line number, String filename (escaped)
      • getBuiltBy

        public String getBuiltBy()
        Since:
        0.9.35