1 | <?php |
||
34 | class LoggerJsonConfiguration implements LoggerConfigurationInterface |
||
35 | { |
||
36 | |||
37 | /** |
||
38 | * Holds the data instance read by json file |
||
39 | * |
||
40 | * @var \stdClass |
||
41 | */ |
||
42 | protected $data; |
||
43 | |||
44 | /** |
||
45 | * Holds the handlers data |
||
46 | * |
||
47 | * @var array |
||
48 | */ |
||
49 | protected $handlers; |
||
50 | |||
51 | /** |
||
52 | * Holds the processors data |
||
53 | * |
||
54 | * @var array |
||
55 | */ |
||
56 | protected $processors; |
||
57 | |||
58 | /** |
||
59 | * Constructs config |
||
60 | * |
||
61 | * @param \stdClass $data The data object |
||
62 | */ |
||
63 | public function __construct(\stdClass $data) |
||
73 | |||
74 | /** |
||
75 | * Returns name |
||
76 | * |
||
77 | * @return string |
||
78 | */ |
||
79 | public function getName() |
||
83 | |||
84 | /** |
||
85 | * Returns type |
||
86 | * |
||
87 | * @return string |
||
88 | */ |
||
89 | public function getType() |
||
93 | |||
94 | /** |
||
95 | * Returns channel |
||
96 | * |
||
97 | * @return string|null |
||
98 | */ |
||
99 | public function getChannel() |
||
106 | |||
107 | /** |
||
108 | * Returns defined handlers for logger |
||
109 | * |
||
110 | * @return array |
||
111 | */ |
||
112 | public function getHandlers() |
||
116 | |||
117 | /** |
||
118 | * Returns defined processors for logger |
||
119 | * |
||
120 | * @return array |
||
121 | */ |
||
122 | public function getProcessors() |
||
126 | |||
127 | /** |
||
128 | * Prepares handlers array for config |
||
129 | * |
||
130 | * @param \stdClass $data The data object get information from |
||
131 | * |
||
132 | * @return array |
||
133 | */ |
||
134 | public function prepareHandlers(\stdClass $data) |
||
157 | |||
158 | /** |
||
159 | * Prepares processors array for config |
||
160 | * |
||
161 | * @param \stdClass $data The data object get information from |
||
162 | * |
||
163 | * @return array |
||
164 | */ |
||
165 | public function prepareProcessors(\stdClass $data) |
||
175 | } |
||
176 |