mcross1882 / LogAnalyzer

Log analyzer and summary builder written in Scala built for JVM projects
Apache License 2.0
0 stars 1 forks source link

Implement Summary Exports #4

Closed mcross1882 closed 10 years ago

mcross1882 commented 10 years ago

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.

mcross1882 commented 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.

mcross1882 commented 10 years ago