mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
c7b02d2063
commit
5284f9019c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user