aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/psr/log/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/psr/log/README.md')
-rw-r--r--vendor/psr/log/README.md6
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
}