PluginProbe
Loginizer / 1.9.9
Loginizer v1.9.9
2.1.0 2.0.9 2.0.8 1.9.8 1.9.9 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 trunk 1.0 1.0.1 1.0.2 1.1.0 1.1.1 1.2.0 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 All 74 releases
loginizer / lib / hybridauth / Logger / Psr3LoggerWrapper.php

Psr3LoggerWrapper.php in Loginizer 1.9.9, at lib/hybridauth/Logger/Psr3LoggerWrapper.php

51 lines 984 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*!
3 * Hybridauth
4 * https://hybridauth.github.io | https://github.com/hybridauth/hybridauth
5 * (c) 2017 Hybridauth authors | https://hybridauth.github.io/license.html
6 */
7
8 namespace Hybridauth\Logger;
9
10 use Psr\Log\LoggerAwareTrait;
11
12 /**
13 * Wrapper for PSR3 logger.
14 */
15 class Psr3LoggerWrapper implements LoggerInterface
16 {
17 use LoggerAwareTrait;
18
19 /**
20 * @inheritdoc
21 */
22 public function info($message, array $context = [])
23 {
24 $this->logger->info($message, $context);
25 }
26
27 /**
28 * @inheritdoc
29 */
30 public function debug($message, array $context = [])
31 {
32 $this->logger->debug($message, $context);
33 }
34
35 /**
36 * @inheritdoc
37 */
38 public function error($message, array $context = [])
39 {
40 $this->logger->error($message, $context);
41 }
42
43 /**
44 * @inheritdoc
45 */
46 public function log($level, $message, array $context = [])
47 {
48 $this->logger->log($level, $message, $context);
49 }
50 }
51