Closed mcross1882 closed 10 years ago
This should be implemented within the Service
class and the xml version would have the following structure...
<services>
<service name="demo" title="Demo Diagnostics Report">
<logfiles>
<file src="examples/sample.txt" />
</logfiles>
<parsers>
<parser name="DemoParser" />
</parsers>
<!-- Exports will define the ways we want to output the data stdout is default -->
<exports>
<!-- File Export -->
<file src="/path/to/output.txt" />
<!-- Email Export -->
<email address="johndoe@somewhere.com" />
</exports>
</service>
</services>
For the email implementation we will use Java Mail. File writing will be done using the native Java io classes.
The user should have the option to either export the results to a local file or have the application send an email with the report as an attachment.