(stack: string)
| 152 | } |
| 153 | |
| 154 | function indentStack(stack: string): string { |
| 155 | return stack |
| 156 | .split('\n') |
| 157 | .map((line, i) => (i === 0 ? ` ${line}` : ` ${line.trimStart()}`)) |
| 158 | .join('\n'); |
| 159 | } |
| 160 | |
| 161 | export function formatEntry(entry: LogEntry, options: FormatOptions = {}): FormattedEntry { |
| 162 | const ctx = entry.ctx ? redactCtx(entry.ctx) : undefined; |