Class LoggingDecorateBuildItem

java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.SimpleBuildItem
io.quarkus.deployment.logging.LoggingDecorateBuildItem

public final class LoggingDecorateBuildItem extends io.quarkus.builder.item.SimpleBuildItem
Contains information to decorate the Log output. Can be used by extensions that output the log / stacktraces, for example the error page. Also see io.quarkus.runtime.logging.DecorateStackUtil to assist with the decoration
  • Constructor Details

    • LoggingDecorateBuildItem

      public LoggingDecorateBuildItem(Path srcMainJava, org.jboss.jandex.CompositeIndex knowClassesIndex)
  • Method Details

    • getSrcMainJava

      public Path getSrcMainJava()
    • getKnowClassesIndex

      public org.jboss.jandex.CompositeIndex getKnowClassesIndex()
    • getKnowClasses

      public List<String> getKnowClasses()
      Returns a list of ordered known classes. Normally, we don't require the build items to have reproducible collections, since stabilizing order is a responsibility of io.quarkus.deployment.annotations.Record annotated build steps.

      However, this build item is used by the number of bytecode-recording build steps. Repeating the ordering logic in all of them seems like a waste, so we do it here instead.

      Returns:
      a list of ordered known classes, sorted by their name.