{#if currentStatus === 'running'}
Streaming logs
{/if}
{#if currentStatus === 'queued'}
Queued and waiting for execution.
{:else if logs.length > 0}
{#each logs as log}
{#if fromDb}
{log.line + '\n'}
{:else}
[{day.unix(log.time).format('HH:mm:ss.SSS')}] {log.line + '\n'}
{/if}
{/each}
{:else}
{loading
? 'Loading logs...'
: dev
? 'In development, logs are shown in the console.'
: 'No logs found yet.'}
{/if}