Utility class for batch export of log data.
Safety: when more than defaultMaxLogs entries are passed,
only the last defaultMaxLogs are exported to prevent OOM.
Each entry and complete document also use LogExportOutput's UTF-8 byte
limits; aggregate overflow stops before a partial record is written.
Every format redacts with the default sensitive-key set when redactKeys
is omitted. Pass enableRedaction: false only for an explicit local
debugging opt-out; the global ISpectRedaction.enabled switch is also
honored. A supplied RedactionService takes precedence over redactKeys.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
escapeCsvValue(
String value) → String - Escapes one CSV field and neutralizes spreadsheet formulas.
-
toCsv(
List< ISpectLogData> logs, {int? maxLogs = defaultMaxLogs, Set<String> ? redactKeys, RedactionService? redactionService, bool enableRedaction = true}) → String - Export as CSV with formula injection protection.
-
toJsonLines(
List< ISpectLogData> logs, {int? maxLogs = defaultMaxLogs, Set<String> ? redactKeys, RedactionService? redactionService, bool enableRedaction = true}) → String - Export as JSON Lines (one line = one log).
-
toMarkdown(
List< ISpectLogData> logs, {int? maxLogs = defaultMaxLogs, Set<String> ? redactKeys, RedactionService? redactionService, ISpectMetadata? metadata, bool enableRedaction = true}) → String - Export as Markdown.
-
toText(
List< ISpectLogData> logs, {int? maxLogs = defaultMaxLogs, Set<String> ? redactKeys, RedactionService? redactionService, ISpectMetadata? metadata, bool enableRedaction = true}) → String - Export as plain text.
Constants
- defaultMaxLogs → const int