Package net.i2p.router.web.helpers
Class LogsHelper
- java.lang.Object
-
- net.i2p.router.web.HelperBase
-
- net.i2p.router.web.helpers.LogsHelper
-
public class LogsHelper extends HelperBase
-
-
Field Summary
-
Fields inherited from class net.i2p.router.web.HelperBase
_context, _out, CHECKED, PROP_ADVANCED, SELECTED
-
-
Constructor Summary
Constructors Constructor Description LogsHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearThrough(int n, int crit, long wn, long wts, String wf, String consoleNonce)
String
getBuiltBy()
String
getCriticalLogs()
String
getJettyVersion()
String
getJstlVersion()
int
getLastCriticalMessageNumber()
Call before getLogs(), getCriticalLogs(), or getLastMessageNumber() Side effect - calls logManager.flush()int
getLastMessageNumber()
Call before getLogs()String
getLogs()
Does not call logManager.flush(); call getCriticalLogs() first to flushObject[]
getServiceLogs(StringBuilder obuf)
last line number -1 on errorString
getUnavailableCrypto()
-
Methods inherited from class net.i2p.router.web.HelperBase
_t, _t, _t, _x, getChecked, isAdvanced, ngettext, setContextId, storeWriter
-
-
-
-
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 nonecrit
- -1 for noneconsoleNonce
- 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
-
-