Exemplo n.º 1
0
</span></span>
            <?php 
}
?>
        </div>
    </h1>
    <ul id="log_entries">
    <?php 
foreach ($log as $entry) {
    ?>
        <li class="cat-<?php 
    echo $entry['category'];
    ?>
">
            <span class="badge loglevel"><?php 
    echo mb_strtoupper(\thebuggenie\core\framework\Logging::getLevelName($entry['level']));
    ?>
</span>
            <span class="badge catname"><?php 
    echo $entry['category'];
    ?>
</span>
            <span class="badge timing"><?php 
    echo $entry['time'];
    ?>
</span>
            <span class="logmessage"><?php 
    echo $entry['message'];
    ?>
</span>
        </li>
Exemplo n.º 2
0
                    </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'];
        ?>
]</strong> <span style="color: #555; font-size: 10px; font-style: italic;"><?php 
        echo $entry['time'];