diff options
author | Max Kostikov <max@kostikov.co> | 2019-11-08 23:39:04 +0100 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2019-11-08 23:39:04 +0100 |
commit | ec68ede79faffd5733c3eaa24df2e4fb3b54eeb9 (patch) | |
tree | c26098c1c0ebff705dc4ef4f324b8b1656c61b9a /vendor/psr/log/README.md | |
parent | 3706afbd01164c9f322c605d6ec242e6ca4770fa (diff) | |
parent | 478014f02a9241ec6d5b5e9672968897176302d2 (diff) | |
download | volse-hubzilla-ec68ede79faffd5733c3eaa24df2e4fb3b54eeb9.tar.gz volse-hubzilla-ec68ede79faffd5733c3eaa24df2e4fb3b54eeb9.tar.bz2 volse-hubzilla-ec68ede79faffd5733c3eaa24df2e4fb3b54eeb9.zip |
Merge branch 'dev' into 'dev'
Dev sync
See merge request kostikov/core!4
Diffstat (limited to 'vendor/psr/log/README.md')
-rw-r--r-- | vendor/psr/log/README.md | 6 |
1 files changed, 6 insertions, 0 deletions
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 } |