Class LogReportBuilder
java.lang.Object
com.itextpdf.pdfoptimizer.report.builder.DefaultReportBuilder
com.itextpdf.pdfoptimizer.report.builder.LogReportBuilder
The goal of the class is to log optimization messages using logging library.
-
Constructor Summary
ConstructorDescriptionLogReportBuilder
(SeverityLevel minimalLevel, IMessageDecorator decorator) Creates aLogReportBuilder
which will be used to log optimizations. -
Method Summary
Modifier and TypeMethodDescriptionvoid
processMessage
(ReportMessage reportMessage) Stores message and logs it using logger.Methods inherited from class com.itextpdf.pdfoptimizer.report.builder.DefaultReportBuilder
build, getMessages, log
-
Constructor Details
-
LogReportBuilder
Creates aLogReportBuilder
which will be used to log optimizations.- Parameters:
-
minimalLevel
- the minimalSeverityLevel
of a log messages to be accepted by thisLogReportBuilder
-
decorator
- theIMessageDecorator
to be used to decorate log messages
-
-
Method Details
-
processMessage
Stores message and logs it using logger.- Overrides:
-
processMessage
in classDefaultReportBuilder
- Parameters:
-
reportMessage
- is a message to process
-