Package com.zetaplugins.zetacore.debug
Class ReportFileWriter
java.lang.Object
com.zetaplugins.zetacore.debug.ReportFileWriter
ReportFileWriter is responsible for writing a DebugReport to a file.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidwriteJsonReportToFile(DebugReport report, File file) Writes the provided DebugReport to a file at the specified file.static voidwriteTextReportToFile(DebugReport report, File file) Writes the provided DebugReport to a text file at the specified file.
-
Method Details
-
writeJsonReportToFile
Writes the provided DebugReport to a file at the specified file.- Parameters:
report- the DebugReport to writefile- the file where the report will be written- Throws:
IOException- if an I/O error occurs while writing to the file
-
writeTextReportToFile
Writes the provided DebugReport to a text file at the specified file.- Parameters:
report- the DebugReport to writefile- the file where the report will be written- Throws:
IOException- if an I/O error occurs while writing to the file
-