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, options
Fields inherited from class org.apache.logging.log4j.core.pattern.AbstractPatternConverter
LOGGER
Fields inherited from interface org.apache.logging.log4j.core.pattern.PatternConverter
CATEGORY
-
Method Summary
Modifier and TypeMethodDescriptionvoid
format
(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, handlesThrowable
Methods inherited from class org.apache.logging.log4j.core.pattern.LogEventPatternConverter
format, isVariable
Methods 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:
format
in classorg.apache.logging.log4j.core.pattern.ThrowablePatternConverter
-