feat: native TRACE log level with design system 0.1.16
Some checks failed
CI / cleanup-branch (push) Has been skipped
CI / build (push) Failing after 35s
CI / docker (push) Has been skipped
CI / deploy (push) Has been skipped
CI / deploy-feature (push) Has been skipped

Map TRACE to its own 'trace' level instead of grouping with DEBUG,
now that the design system LogViewer supports it natively.
Bump @cameleer/design-system to 0.1.16.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-03-26 23:07:42 +01:00
parent 862a27b0b8
commit 6e187ccb48
5 changed files with 11 additions and 8 deletions

View File

@@ -233,7 +233,8 @@ function mapLogLevel(level: string): LogEntry['level'] {
switch (level?.toUpperCase()) {
case 'ERROR': return 'error';
case 'WARN': case 'WARNING': return 'warn';
case 'DEBUG': case 'TRACE': return 'debug';
case 'DEBUG': return 'debug';
case 'TRACE': return 'trace';
default: return 'info';
}
}

View File

@@ -24,7 +24,8 @@ function mapLogLevel(level: string): LogEntry['level'] {
switch (level?.toUpperCase()) {
case 'ERROR': return 'error';
case 'WARN': case 'WARNING': return 'warn';
case 'DEBUG': case 'TRACE': return 'debug';
case 'DEBUG': return 'debug';
case 'TRACE': return 'trace';
default: return 'info';
}
}

View File

@@ -29,7 +29,8 @@ function mapLogLevel(level: string): LogEntry['level'] {
switch (level?.toUpperCase()) {
case 'ERROR': return 'error'
case 'WARN': case 'WARNING': return 'warn'
case 'DEBUG': case 'TRACE': return 'debug'
case 'DEBUG': return 'debug'
case 'TRACE': return 'trace'
default: return 'info'
}
}