LoggerConfig   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 26
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getHandlers() 0 4 1
A getChannelName() 0 3 1
A getProcessors() 0 3 1
1
<?php
2
3
/**
4
 * MIT License
5
 * Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
6
 */
7
8
namespace SprykerEco\Zed\Ratepay\Business\Log;
9
10
use Spryker\Shared\Log\Config\LoggerConfigInterface;
11
12
class LoggerConfig implements LoggerConfigInterface
13
{
14
    /**
15
     * @return string
16
     */
17
    public function getChannelName()
18
    {
19
        return "ratepayLogger";
20
    }
21
22
    /**
23
     * @return \Monolog\Handler\HandlerInterface[]
24
     */
25
    public function getHandlers()
26
    {
27
        return [
28
            new LogHandler(new PaymentLogger()),
29
        ];
30
    }
31
32
    /**
33
     * @return callable[]
34
     */
35
    public function getProcessors()
36
    {
37
        return [];
38
    }
39
}
40