Add shortfile option for console logging

To reduce the width of console log messages, add an field to display the
filename without full path info.
This commit is contained in:
2011-12-13 01:23:02 +00:00
parent d7dfdadc14
commit bc154dd1c8

View File

@@ -34,6 +34,7 @@ class SihnonFramework_Log_Plugin_Console extends SihnonFramework_Log_PluginBase
// Make some alterations for ease of display
$fields_map['timestamp'] = date('d/m/y H:i:s', $fields_map['ctime']);
$fields_map['shortfile'] = basename($fields_map['file']);
// split the map back out again now the modifications have been made
$fields = array_keys($fields_map);