public class LogsHelper extends HelperBase
_context, _log, _out, CHECKED, PROP_ADVANCED, SELECTED| Constructor and Description |
|---|
LogsHelper() |
| Modifier and Type | Method and Description |
|---|---|
void | clearThrough(int n,
int crit,
long wn,
long wts,
String wf,
HttpSession session,
String consoleNonce)Clear log messages up through the specified message IDs. |
String | getBuiltBy()Return the Built-By attribute from the i2p.jar manifest. |
int | getCriticalLogCount()Returns the number of critical/error log messages currently displayed. |
String | getCriticalLogs()Return HTML rendering of the most recent critical log messages. |
String | getJettyVersion() |
String | getJstlVersion()Return the JSTL taglib version string. |
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 flush |
String | getRevision()Return the build revision and date from the routerconsole.war manifest. |
Object[] | getServiceLogs(StringBuilder obuf)last line number -1 on error |
String | getUnavailableCrypto() |
boolean | isAdvanced()Check if advanced mode is enabled. |
void | setContext(RouterContext context)setContext. |
_t, _t, _t, _x, getChecked, ngettext, setContextId, storeWriterpublic void clearThrough(int n,
int crit,
long wn,
long wts,
String wf,
HttpSession session,
String consoleNonce)n - -1 for nonecrit - -1 for noneconsoleNonce - must matchpublic String getBuiltBy()
public int getCriticalLogCount()
public String getCriticalLogs()
public String getJettyVersion()
public String getJstlVersion()
public int getLastCriticalMessageNumber()
public int getLastMessageNumber()
public String getLogs()
public String getRevision()
public Object[] getServiceLogs(StringBuilder obuf)
obuf - out parameterpublic String getUnavailableCrypto()
public boolean isAdvanced()
HelperBaseisAdvanced in class HelperBasepublic void setContext(RouterContext context)