withLogCollector()
Home > @backstage/test-utils
> withLogCollector
Synchronous log collector with that only collects selected categories
Signature:
function withLogCollector<T extends LogFuncs>(logsToCollect: T[], callback: SyncLogCollector): CollectedLogs<T>;
Parameters
Parameter |
Type |
Description |
---|---|---|
logsToCollect |
T[] | |
callback |