summaryrefslogtreecommitdiff
path: root/app/Core/Log/System.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Core/Log/System.php')
-rw-r--r--app/Core/Log/System.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/app/Core/Log/System.php b/app/Core/Log/System.php
new file mode 100644
index 00000000..ce801a02
--- /dev/null
+++ b/app/Core/Log/System.php
@@ -0,0 +1,25 @@
+<?php
+
+namespace Kanboard\Core\Log;
+
+/**
+ * Built-in PHP Logger
+ *
+ * @package Kanboard\Core\Log
+ * @author Frédéric Guillot
+ */
+class System extends Base
+{
+ /**
+ * Logs with an arbitrary level.
+ *
+ * @param mixed $level
+ * @param string $message
+ * @param array $context
+ * @return null
+ */
+ public function log($level, $message, array $context = [])
+ {
+ error_log('['.$level.'] '.$this->interpolate($message, $context));
+ }
+}