ColorConverter

@Plugin(name = "color", category = PatternConverter.CATEGORY)
class ColorConverter : LogEventPatternConverter

Log4j2 LogEventPatternConverter colors output using the AnsiOutput class. A single option 'styling' can be provided to the converter, or if not specified color styling will be picked based on the logging level.

Author

Vladimir Tsanev

Since

1.3.0

Properties

Link copied to clipboard
val CATEGORY: String = "Converter"
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
open fun format(event: LogEvent, toAppendTo: StringBuilder)
Link copied to clipboard
open fun getStyleClass(e: Any): String
Link copied to clipboard
Link copied to clipboard
open fun isVariable(): Boolean
Link copied to clipboard
open fun newInstance(config: Configuration, options: Array<String>): ColorConverter
Creates a new instance of the class.