File tree Expand file tree Collapse file tree 1 file changed +17
-6
lines changed
Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change 2323include PathUtility::getAbsolutePath ('admin/helper/index.php ' );
2424
2525?>
26+ <style>
27+ .log-level {
28+ font-weight: bold;
29+ padding: 2px 6px;
30+ border-radius: 3px;
31+ }
32+ .log-level.debug { background-color: #e7f4fa; color: #0074d9; }
33+ .log-level.info { background-color: #e7f9e7; color: #2e8b57; }
34+ .log-level.error { background-color: #f9e7e7; color: #d9534f; }
35+ </style>
2636<div class="w-full h-full grid place-items-center fixed bg-brand-1 overflow-x-hidden overflow-y-auto">
2737 <div class="w-full flex items-center justify-center flex-col px-6 py-12">
28-
2938 <div class="w-full max-w-xl h-144 rounded-lg p-4 md:p-8 bg-white flex flex-col shadow-xl">
3039 <div class="w-full flex items-center pb-3 mb-3 border-b border-solid border-gray-200">
3140 <a href="<?= PathUtility::getPublicPath ('admin ' )?> " class="h-4 mr-4 flex items-center justify-center border-r border-solid border-black border-opacity-20 pr-3">
5463 $ message = htmlspecialchars ($ log ['message ' ]);
5564 $ context = htmlspecialchars (json_encode ($ log ['context ' ], JSON_PRETTY_PRINT ));
5665
57- echo '<div class="log-entry">
58- <div class="log-level ' . $ level . '"> ' . strtoupper ($ level ) . '</div>
59- <div class="log-message"> ' . $ message . '</div>
60- <div class="log-context"><pre> ' . $ context . '</pre></div>
66+ echo '<div class="w-full max-w-xl flex flex-1 flex-col py-5 px-5 overflow-x-auto">
67+ <div class="log-level ' . $ level . '"><span class="flex text-sm mt-2"> ' . strtoupper ($ level ) . '</span></div>
68+ <div class="log-message"><span class="flex font-bold mt-2"> ' . $ message . '</span></div>
69+ <div class="log-context px-5 py-5 overflow-x-auto">
70+ <pre> ' . $ context . '</pre>
71+ </div>
6172 </div> ' ;
6273 }
74+ echo '<hr> ' ;
6375 $ test ->logData = [];
6476}
6577
6678?>
6779 </div>
68-
6980 </div>
7081</div>
7182
You can’t perform that action at this time.
0 commit comments