# Class: com.pnfsoftware.jeb.client.ErrorLogGenerator

An error log generator.

## Constructor: ErrorLogGenerator
- parameter: `t`, type: `java.lang.Throwable`


## Static Field: ERRORLOG_VERSION
Type: `int`

Constant value: `2`

## Static Field: KEY_URLENCODED_THREADS
Type: `java.lang.String`

Constant value: `urlencoded-threads`

## Method: addRecord
- parameter: `key`, type: `java.lang.String`
- parameter: `value`, type: `java.lang.Object`
- return type: `java.lang.String`

Description: 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.
parameter: key: non\-null record key
parameter: value: record value
return: the actual key that was used to register the record

## Method: addRecord
- parameter: `key`, type: `java.lang.String`
- parameter: `value`, type: `java.lang.Object`
- parameter: `generateNewKeyIfExists`, type: `boolean`
- return type: `java.lang.String`

Description: 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.
parameter: key: non\-null record key
parameter: value: record value
parameter: generateNewKeyIfExists: 
return: the actual key that was used to register the record, or null if the record was not         inserted

## Method: dumpTo
- parameter: `folder`, type: `java.lang.String`
- return type: `java.lang.String`

Description: Dump the unencoded log to a folder on disk.
parameter: folder: 
return: 

## Method: dumpTo
- parameter: `folder`, type: `java.lang.String`
- parameter: `filename`, type: `java.lang.String`
- parameter: `encode`, type: `boolean`
- return type: `java.lang.String`

Description: Dump the log to disk.
parameter: folder: 
parameter: filename: optional; if null, will auto\-generate a filename \(`jeb_errorlog_...`\)
parameter: encode: true to URL\-encode the keys and values
return: 

## Method: getLog
- return type: `java.lang.String`

Description: Generate an unencoded string representation of this entire error log.
return: the string representation of this log

## Method: getLog
- parameter: `keys`, type: `java.util.Collection<java.lang.String>`
- parameter: `encode`, type: `boolean`
- return type: `java.lang.String`

Description: Generate a string representation of this error log.
parameter: keys: the keys of records to be generated; use null to mean all; if an ordered            collection is provided, the order is maintained
parameter: encode: true to URL\-encode the keys and values
return: the string representation of this log

## Method: getRecords
- return type: `java.util.LinkedHashMap<java.lang.String,java.lang.String>`


## Method: getThrowable
- return type: `java.lang.Throwable`


## Method: recordEnginesInformation
- parameter: `engctx`, type: `com.pnfsoftware.jeb.core.IEnginesContext`


## Method: recordEnginesInformation
- parameter: `engctx`, type: `com.pnfsoftware.jeb.core.IEnginesContext`
- parameter: `excludeBuiltinPlugins`, type: `boolean`


## Method: removeRecord
- parameter: `key`, type: `java.lang.String`
- return type: `boolean`

Description: 
parameter: key: 
return: true if the record was removed

## Method: setRecord
- parameter: `key`, type: `java.lang.String`
- parameter: `value`, type: `java.lang.Object`
- return type: `boolean`

Description: Add a new or replace an existing record.
parameter: key: 
parameter: value: 
return: true if the key did not exist, false if a record having a same key was replaced

## Method: toString
- return type: `java.lang.String`


## Static Method: generateUrlencodedThreadsRecordValue
- return type: `java.lang.String`


