Annotation Interface MessageKeyInspection


@Inherited @Target({TYPE,METHOD}) @Retention(RUNTIME) @ExtendWith(MessageKeyInspectionExtension.class) @ExtendWith(MessageKeyWatcherResolver.class) public @interface MessageKeyInspection
Injects the ability to watch for a log messages being triggered. For watching a multiple message-keys, see LoggingInspections
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The logger to watch on
    The message key to look for.
  • Element Details

    • messageKey

      String messageKey
      The message key to look for.
      API Note:
      This is effectively a starts-with check. We simply check that the logged message starts with the value from here
    • logger

      Logger logger
      The logger to watch on