Class EnclosedInSquareBracketsConverter

java.lang.Object
ch.qos.logback.core.pattern.Converter<E>
ch.qos.logback.core.pattern.FormattingConverter<E>
ch.qos.logback.core.pattern.DynamicConverter<E>
ch.qos.logback.core.pattern.CompositeConverter<ch.qos.logback.classic.spi.ILoggingEvent>
org.springframework.boot.logging.logback.EnclosedInSquareBracketsConverter
All Implemented Interfaces:
ch.qos.logback.core.spi.ContextAware, ch.qos.logback.core.spi.LifeCycle

public class EnclosedInSquareBracketsConverter extends ch.qos.logback.core.pattern.CompositeConverter<ch.qos.logback.classic.spi.ILoggingEvent>
Logback CompositeConverter used to help format optional values that should be shown enclosed in square brackets.
Since:
3.4.0
  • Field Summary

    Fields inherited from class ch.qos.logback.core.pattern.DynamicConverter

    started
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
    transform(ch.qos.logback.classic.spi.ILoggingEvent event, String in)
     

    Methods inherited from class ch.qos.logback.core.pattern.CompositeConverter

    convert, getChildConverter, setChildConverter, toString

    Methods inherited from class ch.qos.logback.core.pattern.DynamicConverter

    addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getFirstOption, getOptionList, isStarted, setContext, setOptionList, start, stop

    Methods inherited from class ch.qos.logback.core.pattern.FormattingConverter

    getFormattingInfo, setFormattingInfo, write

    Methods inherited from class ch.qos.logback.core.pattern.Converter

    getNext, setNext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • EnclosedInSquareBracketsConverter

      public EnclosedInSquareBracketsConverter()
  • Method Details

    • transform

      protected String transform(ch.qos.logback.classic.spi.ILoggingEvent event, String in)
      Specified by:
      transform in class ch.qos.logback.core.pattern.CompositeConverter<ch.qos.logback.classic.spi.ILoggingEvent>