| 6 | * is silent so embedding this package never adds noise to an unrelated app. |
| 7 | */ |
| 8 | export interface Logger { |
| 9 | debug(msg: string): void; |
| 10 | info(msg: string): void; |
| 11 | warn(msg: string): void; |
| 12 | error(msg: string): void; |
| 13 | } |
| 14 | |
| 15 | /** Logger that drops every call. Used when no logger is passed. */ |
| 16 | export const silentLogger: Logger = { |
no outgoing calls
no test coverage detected