org.apache.logging.log4j.core.pattern
Class AbstractStyleNameConverter.Yellow

java.lang.Object
  extended by org.apache.logging.log4j.core.pattern.AbstractPatternConverter
      extended by org.apache.logging.log4j.core.pattern.LogEventPatternConverter
          extended by org.apache.logging.log4j.core.pattern.AbstractStyleNameConverter
              extended by org.apache.logging.log4j.core.pattern.AbstractStyleNameConverter.Yellow
All Implemented Interfaces:
PatternConverter
Enclosing class:
AbstractStyleNameConverter

@Plugin(name="yellow",
        category="Converter")
public static final class AbstractStyleNameConverter.Yellow
extends AbstractStyleNameConverter

Yellow style pattern converter. Adds ANSI color styling to the result of the enclosed pattern.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.logging.log4j.core.pattern.AbstractStyleNameConverter
AbstractStyleNameConverter.Black, AbstractStyleNameConverter.Blue, AbstractStyleNameConverter.Cyan, AbstractStyleNameConverter.Green, AbstractStyleNameConverter.Magenta, AbstractStyleNameConverter.Red, AbstractStyleNameConverter.White, AbstractStyleNameConverter.Yellow
 
Field Summary
protected static String NAME
          Yellow
 
Fields inherited from class org.apache.logging.log4j.core.pattern.AbstractPatternConverter
LOGGER
 
Fields inherited from interface org.apache.logging.log4j.core.pattern.PatternConverter
CATEGORY
 
Constructor Summary
AbstractStyleNameConverter.Yellow(List<PatternFormatter> formatters, String styling)
          Constructs the converter.
 
Method Summary
static AbstractStyleNameConverter.Yellow newInstance(Configuration config, String[] options)
          Gets an instance of the class (called via reflection).
 
Methods inherited from class org.apache.logging.log4j.core.pattern.AbstractStyleNameConverter
format, newInstance
 
Methods inherited from class org.apache.logging.log4j.core.pattern.LogEventPatternConverter
format, handlesThrowable
 
Methods inherited from class org.apache.logging.log4j.core.pattern.AbstractPatternConverter
getName, getStyleClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

protected static final String NAME
Yellow

See Also:
Constant Field Values
Constructor Detail

AbstractStyleNameConverter.Yellow

public AbstractStyleNameConverter.Yellow(List<PatternFormatter> formatters,
                                         String styling)
Constructs the converter. This constructor must be public.

Parameters:
formatters - The PatternFormatters to generate the text to manipulate.
styling - The styling that should encapsulate the pattern.
Method Detail

newInstance

public static AbstractStyleNameConverter.Yellow newInstance(Configuration config,
                                                            String[] options)
Gets an instance of the class (called via reflection).

Parameters:
config - The current Configuration.
options - The pattern options, may be null. If the first element is "short", only the first line of the throwable will be formatted.
Returns:
new instance of class or null


Copyright © 1999-2014 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.