<?php if (is_array($tbg_summary)) { ?> <style type="text/css"> /* logging colors for categories */ <?php foreach (array("main", "B2DB", "core", "routing", "i18n", "cache", "search", "publish") as $category) { ?> .cat-<?php echo $category; ?> .badge.catname { background-color:#<?php echo \thebuggenie\core\framework\Logging::getCategoryColor($category); ?> ; color: #FFF; } <?php } ?> .catname { text-shadow: none; text-transform: uppercase; } h1 .log-selectors { float: right; font-size: 0.7em; } h1 .log-selectors .badge { opacity: 0.2; cursor: pointer; } h1 .log-selectors .badge.selected { opacity: 1; } #log_timing ul, #log_ajax ul, #log_messages ul, #debug_routes ul, #log_sql ol { list-style: none; padding: 0; margin: 0; } #log_timing ul li, #log_ajax ul li, #log_messages ul li { font-size: 1.1em; list-style: none; padding: 2px; margin: 2px 0; clear: both; display: block; } #log_timing ul li:hover, #log_ajax ul li:hover, #log_messages ul li:hover, #debug_routes ul li:hover { background-color: rgba(230, 230, 230, 0.1); } #debug_routes ul li.selected { background-color: rgba(160, 230, 160, 0.2); } #debug_routes ul li.selected:hover { background-color: rgba(160, 230, 160, 0.4); }
<?php } ?> </ul> <?php } ?> <?php if (class_exists('\\thebuggenie\\core\\framework\\Context') && class_exists("\thebuggenie\\core\framework\\Logging") && \thebuggenie\core\framework\Context::isDebugMode() && (!isset($exception) || !$exception instanceof \thebuggenie\core\framework\exceptions\ComposerException)) { ?> <h3>Log messages:</h3> <?php foreach (\thebuggenie\core\framework\Logging::getEntries() as $entry) { ?> <?php $color = \thebuggenie\core\framework\Logging::getCategoryColor($entry['category']); ?> <?php $lname = \thebuggenie\core\framework\Logging::getLevelName($entry['level']); ?> <div class="log_<?php echo $entry['category']; ?> "><strong><?php echo $lname; ?> </strong> <strong style="color: #<?php echo $color; ?> ">[<?php echo $entry['category'];