Skip to content

Commit 948776d

Browse files
feat: debug logger and viewer
1 parent 3b2a953 commit 948776d

File tree

5 files changed

+1034
-18
lines changed

5 files changed

+1034
-18
lines changed

css/settings.css

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2559,6 +2559,7 @@ li.draggable-item .components-panel__body-toggle.components-button{
25592559
border-bottom: 0;
25602560
padding: 24px 0 0;
25612561
}
2562+
25622563
@-webkit-keyframes spin {
25632564
100% { -webkit-transform: rotate(360deg); }
25642565
}
@@ -2573,4 +2574,137 @@ li.draggable-item .components-panel__body-toggle.components-button{
25732574
.support-box-list > ul{
25742575
grid-template-columns: repeat(2, 1fr);
25752576
}
2577+
}
2578+
2579+
/* Feedzy Logs */
2580+
.fz-logs {
2581+
padding: 10px;
2582+
margin: 10px 0;
2583+
}
2584+
2585+
.fz-logs h3 {
2586+
margin-bottom: 10px;
2587+
font-size: 1.25em;
2588+
color: #333;
2589+
}
2590+
2591+
/* Logs view container */
2592+
.fz-logs-view {
2593+
display: flex;
2594+
flex-direction: column;
2595+
gap: 2px;
2596+
}
2597+
2598+
/* Individual log container */
2599+
.fz-log-container {
2600+
display: flex;
2601+
gap: 10px;
2602+
background-color: #fff;
2603+
border: 1px solid #e0e0e0;
2604+
border-left-width: 5px;
2605+
padding: 8px 10px;
2606+
transition: background-color 0.1s ease;
2607+
font-size: 0.875em;
2608+
}
2609+
2610+
.fz-log-container:hover {
2611+
background-color: #f5f5f5;
2612+
}
2613+
2614+
/* Left section */
2615+
.fz-log-container__left {
2616+
flex: 0 0 50%;
2617+
min-width: 0;
2618+
}
2619+
2620+
/* Header with level and date */
2621+
.fx-log-container__header {
2622+
display: flex;
2623+
align-items: center;
2624+
gap: 4px;
2625+
margin-bottom: 4px;
2626+
font-size: 1.1em;
2627+
}
2628+
2629+
/* Log level styling */
2630+
.fx-log-container__header > *:first-child {
2631+
padding: 2px 6px;
2632+
border-radius: 3px;
2633+
font-size: 0.7em;
2634+
font-weight: 600;
2635+
letter-spacing: 0.3px;
2636+
text-transform: uppercase;
2637+
min-width: 50px;
2638+
text-align: center;
2639+
}
2640+
2641+
/* Date styling */
2642+
.fz-log-container__date {
2643+
color: #757575;
2644+
font-size: 0.85em;
2645+
}
2646+
2647+
/* Message styling */
2648+
.fz-log-container__message {
2649+
color: #212529;
2650+
line-height: 1.3;
2651+
word-wrap: break-word;
2652+
overflow-wrap: break-word;
2653+
font-size: 1em;
2654+
margin-top: 10px;
2655+
}
2656+
2657+
/* Right section - Context */
2658+
.fz-log-container__right {
2659+
flex: 1;
2660+
min-width: 0;
2661+
}
2662+
2663+
/* Context styling - compact */
2664+
.fz-log-container__context {
2665+
background-color: #f8f9fa;
2666+
border: 1px solid #e9ecef;
2667+
border-radius: 5px;
2668+
padding: 6px 8px;
2669+
font-family: 'Courier New', Consolas, Monaco, monospace;
2670+
font-size: 0.9em;
2671+
line-height: 1.3;
2672+
color: #495057;
2673+
white-space: pre-wrap;
2674+
word-break: break-all;
2675+
overflow-wrap: break-word;
2676+
}
2677+
2678+
.fz-log-container--error {
2679+
border-left-color: red;
2680+
}
2681+
2682+
.fz-log-container--info {
2683+
border-left-color: blue;
2684+
}
2685+
2686+
.fz-log-container--debug {
2687+
border-left-color: green;
2688+
}
2689+
2690+
.fz-log-container--warning {
2691+
border-left-color: yellow;
2692+
}
2693+
2694+
.fz-log-container--critical {
2695+
border-left-color: violet;
2696+
}
2697+
2698+
.fz-logs-header {
2699+
display: flex;
2700+
flex-direction: row;
2701+
flex-wrap: wrap;
2702+
justify-content: space-between;
2703+
margin-bottom: 1rem;
2704+
}
2705+
2706+
.fz-logs-header-actions {
2707+
display: flex;
2708+
flex-direction: row;
2709+
gap: 0.5rem;
25762710
}

0 commit comments

Comments
 (0)