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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user