(message: string, error: unknown)
| 50 | } |
| 51 | |
| 52 | public logError(message: string, error: unknown) { |
| 53 | if (error instanceof Error) { |
| 54 | this.logErrorInternal(message, error); |
| 55 | } else { |
| 56 | const errorMsg = String(error); |
| 57 | this.logErrorInternal(message, Error(errorMsg)); |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | public logInfo(message: string) { |
| 62 | if (this.infoEnabled) { |
no test coverage detected