Log File Collector
Collects the N last lines of a text stream. Use this collector if your application handles its own logging system.
Author
Kevin Gaudin & F43nd1r
Functions
Link copied to clipboard
open override fun collect(context: Context, config: CoreConfiguration, reportBuilder: ReportBuilder, crashReportData: CrashReportData)
Calls .shouldCollect for each ReportField and then .collect if it returned true
open override fun collect(reportField: ReportField, context: Context, config: CoreConfiguration, reportBuilder: ReportBuilder, target: CrashReportData)
Collect a ReportField
Link copied to clipboard
controls if this instance is active
Link copied to clipboard
fun shouldCollect(context: Context, config: CoreConfiguration, collect: ReportField, reportBuilder: ReportBuilder): Boolean
this should check if the config contains the field, but may add additional checks like permissions etc.