From bcd0802ea4a23971b5d53892c7de4e9e1822309f Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 8 Nov 2019 09:46:23 +0000 Subject: update composr libs (cherry picked from commit 2df15f35d706d4608ff723ce6288391ca774f7ba) --- vendor/psr/log/README.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'vendor/psr/log/README.md') diff --git a/vendor/psr/log/README.md b/vendor/psr/log/README.md index 5571a25e8..a9f20c437 100644 --- a/vendor/psr/log/README.md +++ b/vendor/psr/log/README.md @@ -38,6 +38,12 @@ class Foo if ($this->logger) { $this->logger->info('Doing work'); } + + try { + $this->doSomethingElse(); + } catch (Exception $exception) { + $this->logger->error('Oh no!', array('exception' => $exception)); + } // do something useful } -- cgit v1.2.3