/** * @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; }
<?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ätzliche Informationen können angezeigt werden, indem man mit der Maus über den entsprechenden Eintrag fä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: