( category: string, value: unknown, logHeader?: string )
| 87 | } |
| 88 | |
| 89 | private logValue( |
| 90 | category: string, |
| 91 | value: unknown, |
| 92 | logHeader?: string |
| 93 | ): void { |
| 94 | const formattedValue = this.formatAndRedactSensitiveData( |
| 95 | value, |
| 96 | this.isSensitiveData(logHeader || category) |
| 97 | ); |
| 98 | const header = logHeader ? `${chalk.blue.bold(logHeader)}` : ''; |
| 99 | console.log( |
| 100 | `\n${sym.info} ${blueI(` ${category} `)} ${header}\n${formattedValue}` |
| 101 | ); |
| 102 | } |
| 103 | |
| 104 | public log( |
| 105 | category: LogCategories, |
no test coverage detected