( type: string, message: string, err: Error, contexts: string[] = [], )
| 48 | * @param contexts - Optional array of context strings appended to the log entry. |
| 49 | */ |
| 50 | export function logError( |
| 51 | type: string, |
| 52 | message: string, |
| 53 | err: Error, |
| 54 | contexts: string[] = [], |
| 55 | ) { |
| 56 | logMessage(log.error, type, message, err, contexts); |
| 57 | } |
| 58 | |
| 59 | function logMessage( |
| 60 | logFunction: AllowedLogFunction, |
no test coverage detected