Browse code

Added README.md appinfo/info.xml appinfo/signature.json lib/Controller/AuthorApiController.php and the providers directory

DoubleBastionAdmin authored on 20/08/2022 16:33:00
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,18 @@
1
+<?php
2
+
3
+namespace Telnyx\Util;
4
+
5
+/**
6
+ * A very basic implementation of LoggerInterface that has just enough
7
+ * functionality that it can be the default for this library.
8
+ */
9
+class DefaultLogger implements LoggerInterface
10
+{
11
+    public function error($message, array $context = [])
12
+    {
13
+        if (count($context) > 0) {
14
+            throw new \Exception('DefaultLogger does not currently implement context. Please implement if you need it.');
15
+        }
16
+        error_log($message);
17
+    }
18
+}