예제 #1
0
/**
 * @brief Get all different log types which exists in the log
 *
 * @retval array    log types (array of strings)
 *
 * @throws Exception if there was an error (maybe no file or no read permissions)
 */
function get_all_debug_types()
{
    $types = array();
    $logs = get_debug_log_elements();
    foreach ($logs as $log) {
        if (!in_array((string) $log['type'], $types)) {
            $types[] = $log['type'];
        }
    }
    sort($types);
    return $types;
}
예제 #2
0
<?php 
if ($config['debug']['enable']) {
    ?>
    <div class="outer">
        <h2>Debug-Log</h2>
        <div class="inner">
            Folgende Log-Typen werden hervorgehoben:
            "<font color="darkgreen">success</font>",
            "<font color="darkorange">warning</font>",
            "<strong><font color="red">error</font></strong>"
            "<strong><font color="blue">temp</font></strong>"<br>
            Zus&auml;tzliche Informationen k&ouml;nnen angezeigt werden,
            indem man mit der Maus &uuml;ber den entsprechenden Eintrag f&auml;hrt.
            <select name="debug_log" size="25" style="width:100%" autocomplete="off">
                <?php 
    $logs = get_debug_log_elements();
    foreach ($logs as $log) {
        switch (strtolower($log['type'])) {
            case 'success':
                $style = ' style="color:darkgreen"';
                break;
            case 'warning':
                $style = ' style="color:darkorange"';
                break;
            case 'error':
                $style = ' style="color:red;font-weight:bold"';
                break;
            case 'temp':
                $style = ' style="color:blue;font-weight:bold"';
                break;
            default: