We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d51324 commit d1dbd41Copy full SHA for d1dbd41
1 file changed
main.ts
@@ -181,12 +181,14 @@ const logsCommand = new Command<{ endpoint: string }>()
181
seenIds.add(id);
182
}
183
184
- let text = `[${renderTemporalTimestamp(log.Timestamp)}${
+ const prefix = `[${renderTemporalTimestamp(log.Timestamp)}${
185
log.TraceId ? ` (${log.TraceId})` : ""
186
- }] ${log.Body}`;
+ }]`;
187
+ let text = `${prefix} ${log.Body}`;
188
if (text.endsWith("\n")) {
189
text = text.slice(0, -1);
190
191
+ text = text.replaceAll("\n", "\n".padEnd(prefix.length + 1));
192
193
if (log.SeverityNumber >= 17) {
194
console.log(red(text));
0 commit comments