aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
Diffstat (limited to 'boot.php')
-rw-r--r--boot.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/boot.php b/boot.php
index 1c00598b3..5cb091eae 100644
--- a/boot.php
+++ b/boot.php
@@ -1276,3 +1276,15 @@ function attribute_contains($attr,$s) {
return false;
}}
+if(! function_exists('logger')) {
+function logger($msg) {
+
+ $debugging = get_config('system','debugging');
+ $logfile = get_config('system','logfile');
+
+ if((! $debugging) || (! $logfile))
+ return;
+
+ @file_put_contents($logfile, datetime_convert() . ':' . session_id() . ' ' . $msg . "\n", FILE_APPEND);
+ return;
+}}