| java.lang.Object | |
| ↳ | com.pnfsoftware.jeb.client.ErrorLogGenerator |
An error log generator.
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| int | ERRORLOG_VERSION | ||||||||||
| String | KEY_URLENCODED_THREADS | ||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| ErrorLogGenerator(Throwable t) | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String |
addRecord(String key, Object value)
Add a new record.
| ||||||||||
| String |
addRecord(String key, Object value, boolean generateNewKeyIfExists)
Add a new record.
| ||||||||||
| String |
dumpTo(String folder, String filename, boolean encode)
Dump the log to disk.
| ||||||||||
| String |
dumpTo(String folder)
Dump the unencoded log to a folder on disk.
| ||||||||||
| static String | generateUrlencodedThreadsRecordValue() | ||||||||||
| String |
getLog(Collection<String> keys, boolean encode)
Generate a string representation of this error log.
| ||||||||||
| String |
getLog()
Generate an unencoded string representation of this entire error log.
| ||||||||||
| LinkedHashMap<String, String> | getRecords() | ||||||||||
| Throwable | getThrowable() | ||||||||||
| void | recordEnginesInformation(IEnginesContext engctx) | ||||||||||
| boolean | removeRecord(String key) | ||||||||||
| boolean |
setRecord(String key, Object value)
Add a new or replace an existing record.
| ||||||||||
| String | toString() | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Add a new record. If a record with a similar key exists, a new key will be generated to insert this record without overwriting the pre-existing value.
| key | non-null record key |
|---|---|
| value | record value |
Add a new record. If a record with a similar key exists, the existing record will not be replaced. It may be added using a different key, or it may not be added at all.
| key | non-null record key |
|---|---|
| value | record value |
Dump the log to disk.
| filename | optional; if null, will auto-generate a filename (jeb_errorlog_...) |
|---|---|
| encode | true to URL-encode the keys and values |
Dump the unencoded log to a folder on disk.
Generate a string representation of this error log.
| keys | the keys of records to be generated; use null to mean all; if an ordered collection is provided, the order is maintained |
|---|---|
| encode | true to URL-encode the keys and values |
Generate an unencoded string representation of this entire error log.
Add a new or replace an existing record.