Package com.itextpdf.test.annotations
Annotation Type LogMessage
public @interface LogMessage
An annotation to be used in a
LogMessages wrapper, which signifies a particular log message that must appear in a test a specific number of times.
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionDefines the parameterized log message to look for in the logs. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionintA certain message may have to be called several times, and theLogListeneralgorithm checks whether it has been called the correct number of times.booleanDefines whether theLogListeneralgorithm should be ignored.intbooleanDefines whether theLogListenerlogs should be suppressed in console output.
-
Element Details
-
messageTemplate
String messageTemplateDefines the parameterized log message to look for in the logs.- Returns:
- the message template that must be checked for
-
-
-
count
int countA certain message may have to be called several times, and theLogListeneralgorithm checks whether it has been called the correct number of times. Defaults to once.- Returns:
- the number of times a message template must appear in the logs
- Default:
- 1
-
logLevel
int logLevel- Default:
- 3000
-
ignore
boolean ignoreDefines whether theLogListeneralgorithm should be ignored. If ignored, no checks will be done on the certain log message. Defaults tofalse.- Returns:
-
whether to ignore the
LogListeneralgorithm for a particular log message
- Default:
- false
-
quietMode
boolean quietModeDefines whether theLogListenerlogs should be suppressed in console output. Defaults tofalse.- Returns:
-
whether to suppress the
LogListenerconsole output
- Default:
- false
-