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