diff --git a/src/routes/strategies/[strategy]/(nav)/logs/LogEntriesList.svelte b/src/routes/strategies/[strategy]/(nav)/logs/LogEntriesList.svelte index 45f6499b4..3253a0a35 100644 --- a/src/routes/strategies/[strategy]/(nav)/logs/LogEntriesList.svelte +++ b/src/routes/strategies/[strategy]/(nav)/logs/LogEntriesList.svelte @@ -10,9 +10,9 @@ Display log messages as a scrollable panel
- - {#each [...logs].reverse() as { timestamp, level, message }} - + + {#each [...logs].reverse() as { timestamp, level, message, formatted_data }} + {/each}
diff --git a/src/routes/strategies/[strategy]/(nav)/logs/LogEntry.svelte b/src/routes/strategies/[strategy]/(nav)/logs/LogEntry.svelte index d223a82fb..7d568e79a 100644 --- a/src/routes/strategies/[strategy]/(nav)/logs/LogEntry.svelte +++ b/src/routes/strategies/[strategy]/(nav)/logs/LogEntry.svelte @@ -4,13 +4,23 @@ export let timestamp: number; export let level: 'info' | 'trade' | 'warning' | 'error' | 'critical'; export let message: string; + export let formatted_data: Maybe = undefined;
- +
{message} - + {#if formatted_data?.length} +
+ + {formatted_data[0].trimEnd()} + ({formatted_data.length - 1} lines) + + {formatted_data.slice(1).join('')} +
+ {/if} +