public class InspectorViewerContext extends ValueListViewerContext
The inspector viewer in the Console interprets the data of a Log Entry as a key/value list with group support like object inspectors from popular IDEs. This class takes care of the necessary formatting and escaping required by the corresponding inspector viewer in the Console.
You can use the InspectorViewerContext class for creating custom log methods around logCustomContext for sending custom data organized as grouped key/value pairs.
Thread Safety: This class is not guaranteed to be thread safe.
| Constructor and Description |
|---|
InspectorViewerContext()
Creates and initializes an InspectorViewerContext instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
escapeItem(String item)
Overridden.
|
void |
startGroup(String group)
Starts a new group.
|
appendKeyValue, appendKeyValue, appendKeyValue, appendKeyValue, appendKeyValue, appendKeyValue, appendKeyValue, appendKeyValue, appendKeyValue, appendKeyValueescapeLine, escapeLineappendLine, appendText, close, getViewerData, loadFromFile, loadFromReader, loadFromStream, loadFromText, resetDatagetViewerIdpublic InspectorViewerContext()
public void startGroup(String group)
group - The name of the group to use.public String escapeItem(String item)
escapeItem in class ValueListViewerContextitem - The key or value to escape.Copyright © 2023. All rights reserved.