java.lang.Object
i2p.susi.util.LogHelper
Shared rules for naming a message in the webmail log, so every class that writes about one shortens and brackets it the same way.
Constructor Summary
ConstructorsConstructorDescriptionGroups static helpers, so nothing instantiates this; the constructor only states that an instance would carry no state.Method Summary
All Methods
Constructor Details
LogHelper
public LogHelper()Groups static helpers, so nothing instantiates this; the constructor only states that an instance would carry no state.
Method Details
head
Shortens a message id for the log. A UIDL is a base64 blob of up to 70 characters that nothing in the log viewer links, and it is already spelled out in the cache filename, so only its head is kept. Use this form when the message continues past the id and supplies its own brackets, so the brackets are not written twice.- Parameters:
uidl- the server-side unique message id, may be null- Returns:
- the head of the id, never null
shortId