MINOR Improved email log styling through inline style declaration (which now extends styles to tables), using smaller non-serif font for better readability

This commit is contained in:
Ingo Schommer 2012-02-06 21:55:27 +01:00
parent c7b02d2063
commit 5284f9019c

View File

@ -35,7 +35,9 @@ class SS_LogErrorEmailFormatter implements Zend_Log_Formatter_Interface {
$errline = $event['message']['errline'];
$errcontext = $event['message']['errcontext'];
$data = "<div style=\"border: 5px $colour solid\">\n";
$data = '';
$data .= '<style type="text/css">html, body, table {font-family: sans-serif; font-size: 12px;}</style>';
$data .= "<div style=\"border: 5px $colour solid;\">\n";
$data .= "<p style=\"color: white; background-color: $colour; margin: 0\">[$errorType] $errstr<br />$errfile:$errline\n<br />\n<br />\n</p>\n";
// Get a backtrace, filtering out debug method calls