1 | <?php |
||
38 | class Logger implements LoggerConfigurationInterface |
||
39 | { |
||
40 | |||
41 | /** |
||
42 | * The trait that provides parameter handling functionality. |
||
43 | * |
||
44 | * @var \TechDivision\Import\Configuration\Jms\Configuration\ParamsTrait |
||
45 | */ |
||
46 | use ParamsTrait; |
||
47 | |||
48 | /** |
||
49 | * The logger's channel name to use. |
||
50 | * |
||
51 | * @var string |
||
52 | * @Type("string") |
||
53 | * @SerializedName("channel-name") |
||
54 | */ |
||
55 | protected $channelName; |
||
56 | |||
57 | /** |
||
58 | * The logger's unique name to use. |
||
59 | * |
||
60 | * @var string |
||
61 | * @Type("string") |
||
62 | */ |
||
63 | protected $name; |
||
64 | |||
65 | /** |
||
66 | * The logger's type to use. |
||
67 | * |
||
68 | * @var string |
||
69 | * @Type("string") |
||
70 | */ |
||
71 | protected $type; |
||
72 | |||
73 | /** |
||
74 | * The factory used to create the logger instance. |
||
75 | * |
||
76 | * @var string |
||
77 | * @Type("string") |
||
78 | */ |
||
79 | protected $factory = 'TechDivision\Import\Configuration\Jms\Configuration\LoggerFactory'; |
||
80 | |||
81 | /** |
||
82 | * ArrayCollection with the information of the configured processors. |
||
83 | * |
||
84 | * @var \Doctrine\Common\Collections\ArrayCollection |
||
85 | * @Type("ArrayCollection<TechDivision\Import\Configuration\Jms\Configuration\Logger\Processor>") |
||
86 | */ |
||
87 | protected $processors; |
||
88 | |||
89 | /** |
||
90 | * ArrayCollection with the information of the configured handlers. |
||
91 | * |
||
92 | * @var \Doctrine\Common\Collections\ArrayCollection |
||
93 | * @Type("ArrayCollection<TechDivision\Import\Configuration\Jms\Configuration\Logger\Handler>") |
||
94 | */ |
||
95 | protected $handlers; |
||
96 | |||
97 | /** |
||
98 | * Lifecycle callback that will be invoked after deserialization. |
||
99 | * |
||
100 | * @return void |
||
101 | * @PostDeserialize |
||
102 | */ |
||
103 | public function postDeserialize() |
||
116 | |||
117 | /** |
||
118 | * Return's the logger's channel name to use. |
||
119 | * |
||
120 | * @return string The channel name |
||
121 | */ |
||
122 | public function getChannelName() |
||
126 | |||
127 | /** |
||
128 | * Return's the logger's unique name to use. |
||
129 | * |
||
130 | * @return string The unique name |
||
131 | */ |
||
132 | public function getName() |
||
136 | |||
137 | /** |
||
138 | * Return's the factory used to create the logger instance. |
||
139 | * |
||
140 | * @return string The factory to use |
||
141 | */ |
||
142 | public function getFactory() |
||
146 | |||
147 | /** |
||
148 | * Return's the logger's type to use. |
||
149 | * |
||
150 | * @return string The type |
||
151 | */ |
||
152 | public function getType() |
||
156 | |||
157 | /** |
||
158 | * Return's the array with the logger's processors. |
||
159 | * |
||
160 | * @return \Doctrine\Common\Collections\ArrayCollection The ArrayCollection with the processors |
||
161 | */ |
||
162 | public function getProcessors() |
||
166 | |||
167 | /** |
||
168 | * Return's the array with the logger's handlers. |
||
169 | * |
||
170 | * @return \Doctrine\Common\Collections\ArrayCollection The ArrayCollection with the handlers |
||
171 | */ |
||
172 | public function getHandlers() |
||
176 | } |
||
177 |