Skip to content

Commit 970fb51

Browse files
feat: debug logger and viewer
1 parent 5519e63 commit 970fb51

File tree

5 files changed

+1035
-18
lines changed

5 files changed

+1035
-18
lines changed

css/settings.css

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2593,6 +2593,7 @@ li.draggable-item .components-panel__body-toggle.components-button{
25932593
border-bottom: 0;
25942594
padding: 24px 0 0;
25952595
}
2596+
25962597
.fz-fallback-images {
25972598
display: flex;
25982599
flex-wrap: wrap;
@@ -2673,4 +2674,137 @@ button.feedzy-action-button {
26732674
width: 100%;
26742675
cursor: pointer;
26752676
height: unset;
2677+
}
2678+
2679+
/* Feedzy Logs */
2680+
.fz-logs {
2681+
padding: 10px;
2682+
margin: 10px 0;
2683+
}
2684+
2685+
.fz-logs h3 {
2686+
margin-bottom: 10px;
2687+
font-size: 1.25em;
2688+
color: #333;
2689+
}
2690+
2691+
/* Logs view container */
2692+
.fz-logs-view {
2693+
display: flex;
2694+
flex-direction: column;
2695+
gap: 2px;
2696+
}
2697+
2698+
/* Individual log container */
2699+
.fz-log-container {
2700+
display: flex;
2701+
gap: 10px;
2702+
background-color: #fff;
2703+
border: 1px solid #e0e0e0;
2704+
border-left-width: 5px;
2705+
padding: 8px 10px;
2706+
transition: background-color 0.1s ease;
2707+
font-size: 0.875em;
2708+
}
2709+
2710+
.fz-log-container:hover {
2711+
background-color: #f5f5f5;
2712+
}
2713+
2714+
/* Left section */
2715+
.fz-log-container__left {
2716+
flex: 0 0 50%;
2717+
min-width: 0;
2718+
}
2719+
2720+
/* Header with level and date */
2721+
.fx-log-container__header {
2722+
display: flex;
2723+
align-items: center;
2724+
gap: 4px;
2725+
margin-bottom: 4px;
2726+
font-size: 1.1em;
2727+
}
2728+
2729+
/* Log level styling */
2730+
.fx-log-container__header > *:first-child {
2731+
padding: 2px 6px;
2732+
border-radius: 3px;
2733+
font-size: 0.7em;
2734+
font-weight: 600;
2735+
letter-spacing: 0.3px;
2736+
text-transform: uppercase;
2737+
min-width: 50px;
2738+
text-align: center;
2739+
}
2740+
2741+
/* Date styling */
2742+
.fz-log-container__date {
2743+
color: #757575;
2744+
font-size: 0.85em;
2745+
}
2746+
2747+
/* Message styling */
2748+
.fz-log-container__message {
2749+
color: #212529;
2750+
line-height: 1.3;
2751+
word-wrap: break-word;
2752+
overflow-wrap: break-word;
2753+
font-size: 1em;
2754+
margin-top: 10px;
2755+
}
2756+
2757+
/* Right section - Context */
2758+
.fz-log-container__right {
2759+
flex: 1;
2760+
min-width: 0;
2761+
}
2762+
2763+
/* Context styling - compact */
2764+
.fz-log-container__context {
2765+
background-color: #f8f9fa;
2766+
border: 1px solid #e9ecef;
2767+
border-radius: 5px;
2768+
padding: 6px 8px;
2769+
font-family: 'Courier New', Consolas, Monaco, monospace;
2770+
font-size: 0.9em;
2771+
line-height: 1.3;
2772+
color: #495057;
2773+
white-space: pre-wrap;
2774+
word-break: break-all;
2775+
overflow-wrap: break-word;
2776+
}
2777+
2778+
.fz-log-container--error {
2779+
border-left-color: red;
2780+
}
2781+
2782+
.fz-log-container--info {
2783+
border-left-color: blue;
2784+
}
2785+
2786+
.fz-log-container--debug {
2787+
border-left-color: green;
2788+
}
2789+
2790+
.fz-log-container--warning {
2791+
border-left-color: yellow;
2792+
}
2793+
2794+
.fz-log-container--critical {
2795+
border-left-color: violet;
2796+
}
2797+
2798+
.fz-logs-header {
2799+
display: flex;
2800+
flex-direction: row;
2801+
flex-wrap: wrap;
2802+
justify-content: space-between;
2803+
margin-bottom: 1rem;
2804+
}
2805+
2806+
.fz-logs-header-actions {
2807+
display: flex;
2808+
flex-direction: row;
2809+
gap: 0.5rem;
26762810
}

0 commit comments

Comments
 (0)