From b0d8c7263638c1697ff44f4236d9ebe66c64f490 Mon Sep 17 00:00:00 2001 From: Ross Date: Tue, 19 May 2026 12:55:44 +0100 Subject: [PATCH] feat(logger): enhance logging configuration with minLevel and silent option - Added a new LogLevel "silent" to suppress logging output. - Replaced the debug boolean flag in LoggerConfig with a minLevel property to specify the minimum log level. - Updated shouldLog function to respect the new minLevel configuration. - Modified parseDebugFlag to return appropriate LogLevel based on truthy values. - Updated main.tsx to accommodate changes in logging configuration, including parsing minLevel from attributes and options. - Deprecated the debug flag in favor of minLevel for better clarity and control over logging behavior. --- dicom-viewer/public/fluoro-test.html | 108 +++- dicom-viewer/public/penra-test.html | 239 +++++++- dicom-viewer/src/App.tsx | 809 +++++++++++++++++++++------ dicom-viewer/src/lib/logger.ts | 41 +- dicom-viewer/src/main.tsx | 35 +- 5 files changed, 988 insertions(+), 244 deletions(-) diff --git a/dicom-viewer/public/fluoro-test.html b/dicom-viewer/public/fluoro-test.html index 446d471..6235994 100644 --- a/dicom-viewer/public/fluoro-test.html +++ b/dicom-viewer/public/fluoro-test.html @@ -5,17 +5,36 @@ Fluoro Multiframe Test -
+
@@ -23,49 +42,86 @@ diff --git a/dicom-viewer/public/penra-test.html b/dicom-viewer/public/penra-test.html index ff9104e..be4bfc9 100644 --- a/dicom-viewer/public/penra-test.html +++ b/dicom-viewer/public/penra-test.html @@ -5,70 +5,267 @@ Penra Courses — Viewer Test -
+