Package net.i2p.router.web.helpers
Class LogsHelper
java.lang.Object
net.i2p.router.web.HelperBase
net.i2p.router.web.helpers.LogsHelper
-
Field Summary
Fields inherited from class net.i2p.router.web.HelperBase
_context, _out, CHECKED, PROP_ADVANCED, SELECTED
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clearThrough
(int n, int crit, long wn, long wts, String wf, String consoleNonce) int
Call before getLogs(), getCriticalLogs(), or getLastMessageNumber() Side effect - calls logManager.flush()int
Call before getLogs()getLogs()
Does not call logManager.flush(); call getCriticalLogs() first to flushObject[]
getServiceLogs
(StringBuilder obuf) last line number -1 on errorMethods inherited from class net.i2p.router.web.HelperBase
_t, _t, _t, _x, getChecked, isAdvanced, ngettext, setContextId, storeWriter
-
Constructor Details
-
LogsHelper
public LogsHelper()
-
-
Method Details
-
getJettyVersion
- Since:
- 0.8.12
-
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
-