Module org.elasticsearch.server
Package org.elasticsearch.common.logging
Class ConsoleThrowablePatternConverter
java.lang.Object
org.apache.logging.log4j.core.pattern.AbstractPatternConverter
org.apache.logging.log4j.core.pattern.LogEventPatternConverter
org.apache.logging.log4j.core.pattern.ThrowablePatternConverter
org.elasticsearch.common.logging.ConsoleThrowablePatternConverter
- All Implemented Interfaces:
 org.apache.logging.log4j.core.pattern.PatternConverter
@Plugin(name="consoleException",
        category="Converter")
public class ConsoleThrowablePatternConverter
extends org.apache.logging.log4j.core.pattern.ThrowablePatternConverter
Outputs a very short version of exceptions for an interactive console, pointing to full log for details.
 
If a non-interactive console is attached, the full exception is always printed.
- 
Field Summary
Fields inherited from class org.apache.logging.log4j.core.pattern.ThrowablePatternConverter
formatters, optionsFields inherited from class org.apache.logging.log4j.core.pattern.AbstractPatternConverter
LOGGERFields inherited from interface org.apache.logging.log4j.core.pattern.PatternConverter
CATEGORY - 
Method Summary
Modifier and TypeMethodDescriptionvoidformat(org.apache.logging.log4j.core.LogEvent event, StringBuilder toAppendTo) newInstance(org.apache.logging.log4j.core.config.Configuration config, String[] options) Gets an instance of the class.Methods inherited from class org.apache.logging.log4j.core.pattern.ThrowablePatternConverter
getOptions, getSuffix, handlesThrowableMethods inherited from class org.apache.logging.log4j.core.pattern.LogEventPatternConverter
format, isVariableMethods inherited from class org.apache.logging.log4j.core.pattern.AbstractPatternConverter
getName, getStyleClass 
- 
Method Details
- 
newInstance
public static ConsoleThrowablePatternConverter newInstance(org.apache.logging.log4j.core.config.Configuration config, String[] options) Gets an instance of the class.- Parameters:
 config- The current Configuration.- Returns:
 - instance of class.
 
 - 
format
- Overrides:
 formatin classorg.apache.logging.log4j.core.pattern.ThrowablePatternConverter
 
 -