From 3bd069bf84acd60466ad2b10cc3172b74c394f19 Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Fri, 20 Jan 2012 20:58:10 +0000 Subject: [PATCH] Add shortfile variable support to FlatFile plugin --- source/lib/SihnonFramework/Log/Plugin/FlatFile.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/source/lib/SihnonFramework/Log/Plugin/FlatFile.class.php b/source/lib/SihnonFramework/Log/Plugin/FlatFile.class.php index 399bf89..1c8dc33 100644 --- a/source/lib/SihnonFramework/Log/Plugin/FlatFile.class.php +++ b/source/lib/SihnonFramework/Log/Plugin/FlatFile.class.php @@ -67,6 +67,7 @@ class SihnonFramework_Log_Plugin_FlatFile 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);