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
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 flushString
getRevision()
Object[]
getServiceLogs(StringBuilder obuf)
last line number -1 on errorString
getUnavailableCrypto()
boolean
isAdvanced()
Methods inherited from class net.i2p.router.web.HelperBase
_t, _t, _t, _x, getChecked, ngettext, setContextId, storeWriter
-
Constructor Details
-
LogsHelper
public LogsHelper()
-
-
Method Details
-
getJettyVersion
- Since:
- 0.8.12
-
getUnavailableCrypto
- Since:
- 0.9.15
-
getJstlVersion
- Returns:
- non-null, "n/a" on failure
- Since:
- 0.9.26
-
getLogs
Does not call logManager.flush(); call getCriticalLogs() first to flush -
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
- Parameters:
n
- -1 for nonecrit
- -1 for noneconsoleNonce
- must match- Since:
- 0.9.46
-
getServiceLogs
last line number -1 on error- Parameters:
obuf
- out parameter- Returns:
- Long timestamp, Long last line number, String filename (escaped)
-
getBuiltBy
- Since:
- 0.9.35
-
getRevision
- Since:
- 0.9.50+
-
isAdvanced
public boolean isAdvanced()- Overrides:
isAdvanced
in classHelperBase
-