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 void
writeJsonReportToFile
(DebugReport report, File file) Writes the provided DebugReport to a file at the specified file.static void
writeTextReportToFile
(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
-