updated backend
This commit is contained in:
parent
1fea0f4fe7
commit
11521c2339
3459 changed files with 72735 additions and 168535 deletions
13
pfosten/vendor/psr/log/README.md
vendored
Executable file → Normal file
13
pfosten/vendor/psr/log/README.md
vendored
Executable file → Normal file
|
|
@ -7,6 +7,13 @@ This repository holds all interfaces/classes/traits related to
|
|||
Note that this is not a logger of its own. It is merely an interface that
|
||||
describes a logger. See the specification for more details.
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
```bash
|
||||
composer require psr/log
|
||||
```
|
||||
|
||||
Usage
|
||||
-----
|
||||
|
||||
|
|
@ -31,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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue