summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-04-06 00:37:52 +0000
committerColin Smith <colin@pfsense.org>2005-04-06 00:37:52 +0000
commitc669ba562c3ac7fcb1024202dbd3980c3a2f59b3 (patch)
tree60be66a1a84cffaa7ecfc8dfb3ab70a409d98558 /usr
parent825275fa78ce0ada1bb2805f06a0e8d6abd05f08 (diff)
downloadpfsense-c669ba562c3ac7fcb1024202dbd3980c3a2f59b3.zip
pfsense-c669ba562c3ac7fcb1024202dbd3980c3a2f59b3.tar.gz
Add support for <logging><custom_php_logging_command>.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/diag_pkglogs.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/diag_pkglogs.php b/usr/local/www/diag_pkglogs.php
index 03b86d6..c799f22 100755
--- a/usr/local/www/diag_pkglogs.php
+++ b/usr/local/www/diag_pkglogs.php
@@ -126,7 +126,10 @@ if(!isset($_POST['pkg'])) { // If we aren't looking for a specific package, loca
} else {
$logfile = "{$g['varlog_path']}/system.log";
}
- if(isset($apkg_config['logging']['grepfor']) and isset($apkg_config['logging']['invertgrep'])) {
+ if(isset($apkg_config['logging']['custom_php_logging_command'])) {
+ eval($apkg_config['custom_php_global_functions']);
+ eval($apkg_config['logging']['custom_php_logging_command']));
+ } elseif(isset($apkg_config['logging']['grepfor']) and isset($apkg_config['logging']['invertgrep'])) {
dump_clog($logfile, $nentries, $apkg_config['logging']['grepfor'], true);
} elseif(isset($apkg_config['logging']['grepfor'])) {
dump_clog($logfile, $nentries, $apkg_config['logging']['grepfor']);
OpenPOWER on IntegriCloud