Skip to main content

@rbxts/rlog > LogEnricherCallback

LogEnricherCallback type

Type representing a callback function for enriching log entries, or an "enricher".

Enrichers optionally mutate LogEntrys. You can add data to a LogEntry, edit its metadata, or just return it if you don't need to do anything.

Signature:

export type LogEnricherCallback = (entry: LogEntry) => LogEntry;

References: LogEntry