2020-03-29 13:43:52 +00:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [spyLogger](./js-utils.spylogger.md)
|
|
|
|
|
|
|
|
## spyLogger() function
|
|
|
|
|
2020-03-31 13:49:18 +00:00
|
|
|
Create a spy logger using the provided methods, which returns itself as a child.
|
|
|
|
|
2021-08-08 00:34:19 +00:00
|
|
|
ensure all methods are present by extending null logger
|
|
|
|
|
2020-03-29 13:43:52 +00:00
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
export declare function spyLogger(spies: Partial<Logger>): Logger;
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
2020-06-29 23:23:16 +00:00
|
|
|
| spies | Partial<Logger> | |
|
2020-03-29 13:43:52 +00:00
|
|
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
2020-06-29 23:23:16 +00:00
|
|
|
Logger
|
2020-03-29 13:43:52 +00:00
|
|
|
|