Configuring Reports
You will need to create a .properties
file for
each of the report types you specify with the
reportConfiguration
property in your
ImportReporter.properties
file. With these
.properties
files you can specify in detail what your
import reports should contain.
$class
-
This property must be set to
$class=com.escenic.syndication.xml.filter.ReportConfiguration
. includeStackTrace
-
Specifies whether or not to include stack trace in the report.
includeStackTrace=true
includeStatistics
-
Specifies whether or not to include statistics in the report.
includeStatistics=true
boilerplate
-
Boilerplate text output on the first line of the report.
filename
-
The full path of the file to which the report is to be written. If the file does not exist then it will be created. If the file does exist, then the report will be appended to the existing contents of the file.
filename=/home/user/import-report.txt
recipients
-
A comma-separated list of email address to which the report is to be sent. The addresses must conform to RFC822 syntax. For example:
recipients=user@domain.com
subject
-
The subject line of the report email. For example
subject=XML Import Error Report
includeAttachment
-
Specifies whether or not to attach the import file(s) with the report email.
includeAttachment=true
maxAttachmentSize
-
The maximum allowed size for attachments, specified in kilobytes. If the import file exceeds this limit then it will not be attached with the report. If you do not want to set a size limit, set the value to
-1
. enabled
-
Set to
false
to disable reporting.