[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [spyLogger](./js-utils.spylogger.md)
## spyLogger() function
Create a spy logger using the provided methods, which returns itself as a child.
ensure all methods are present by extending null logger
Signature:
```typescript
export declare function spyLogger(spies: Partial): Logger;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| spies | Partial<Logger> | |
Returns:
Logger