PluginProbe ʕ •ᴥ•ʔ
SEOPress – AI SEO Plugin & On-site SEO / 9.3.0.3
SEOPress – AI SEO Plugin & On-site SEO v9.3.0.3
10.0.1 10.0 9.9.2 9.9.1 9.9 9.8.5 9.8.4 9.8.3 9.8.2 9.8.1 trunk 7.0 7.0.1 7.0.2 7.0.3 7.1 7.1.1 7.1.2 7.2 7.3 7.3.1 7.3.2 7.4 7.5 7.5.0.1 7.5.0.2 7.5.0.3 7.5.1 7.5.2 7.5.2.1 7.6 7.6.1 7.7 7.7.1 7.7.2 7.8 7.9 7.9.1 7.9.2 8.0 8.0.1 8.1 8.1.1 8.2 8.3 8.3.1 8.4 8.4.1 8.5 8.5.0.2 8.5.1 8.5.1.1 8.6 8.6.1 8.7 8.7.0.1 8.7.0.2 8.8 8.8.1 8.9 8.9.0.1 8.9.0.2 9.0 9.0.1 9.1 9.2 9.3 9.3.0.1 9.3.0.2 9.3.0.3 9.3.0.4 9.4 9.4.1 9.5 9.6 9.7 9.7.1 9.7.2 9.7.3 9.7.4 9.8
wp-seopress / vendor / psr / log / README.md
wp-seopress / vendor / psr / log Last commit date
Psr 7 months ago LICENSE 7 months ago README.md 7 months ago composer.json 7 months ago
README.md
59 lines
1 PSR Log
2 =======
3
4 This repository holds all interfaces/classes/traits related to
5 [](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.mdPSR-3](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md).
6
7 Note that this is not a logger of its own. It is merely an interface that
8 describes a logger. See the specification for more details.
9
10 Installation
11 ------------
12
13 ```bash
14 composer require psr/log
15 ```
16
17 Usage
18 -----
19
20 If you need a logger, you can use the interface like this:
21
22 ```php
23 <?php
24
25 use Psr\Log\LoggerInterface;
26
27 class Foo
28 {
29 private $logger;
30
31 public function __construct(LoggerInterface $logger = null)
32 {
33 $this->logger = $logger;
34 }
35
36 public function doSomething()
37 {
38 if ($this->logger) {
39 $this->logger->info('Doing work');
40 }
41
42 try {
43 $this->doSomethingElse();
44 } catch (Exception $exception) {
45 $this->logger->error('Oh no!', array('exception' => $exception));
46 }
47
48 // do something useful
49 }
50 }
51 ```
52
53 You can then pick one of the implementations of the interface to get a logger.
54
55 If you want to implement the interface, you can require this package and
56 implement `Psr\Log\LoggerInterface` in your code. Please read the
57 [](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.mdspecification text](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md)
58 for details.
59