1 | <?php |
||
37 | class Logger implements LoggerConfigurationInterface |
||
38 | { |
||
39 | |||
40 | /** |
||
41 | * The trait that provides parameter handling functionality. |
||
42 | * |
||
43 | * @var \TechDivision\Import\Cli\Configuration\ParamsTrait |
||
44 | */ |
||
45 | use ParamsTrait; |
||
46 | |||
47 | /** |
||
48 | * The logger's channel name to use. |
||
49 | * |
||
50 | * @var string |
||
51 | * @Type("string") |
||
52 | * @SerializedName("channel-name") |
||
53 | */ |
||
54 | protected $channelName; |
||
55 | |||
56 | /** |
||
57 | * The logger's unique name to use. |
||
58 | * |
||
59 | * @var string |
||
60 | * @Type("string") |
||
61 | */ |
||
62 | protected $name; |
||
63 | |||
64 | /** |
||
65 | * The logger's type to use. |
||
66 | * |
||
67 | * @var string |
||
68 | * @Type("string") |
||
69 | */ |
||
70 | protected $type; |
||
71 | |||
72 | /** |
||
73 | * The factory used to create the logger instance. |
||
74 | * |
||
75 | * @var string |
||
76 | * @Type("string") |
||
77 | */ |
||
78 | protected $factory = 'TechDivision\Import\Cli\Configuration\LoggerFactory'; |
||
79 | |||
80 | /** |
||
81 | * ArrayCollection with the information of the configured processors. |
||
82 | * |
||
83 | * @var \Doctrine\Common\Collections\ArrayCollection |
||
84 | * @Type("ArrayCollection<TechDivision\Import\Cli\Configuration\Logger\Processor>") |
||
85 | */ |
||
86 | protected $processors = array(); |
||
87 | |||
88 | /** |
||
89 | * ArrayCollection with the information of the configured handlers. |
||
90 | * |
||
91 | * @var \Doctrine\Common\Collections\ArrayCollection |
||
92 | * @Type("ArrayCollection<TechDivision\Import\Cli\Configuration\Logger\Handler>") |
||
93 | */ |
||
94 | protected $handlers = array(); |
||
95 | |||
96 | /** |
||
97 | * Initialize the logger instance. |
||
98 | */ |
||
99 | public function __construct() |
||
104 | |||
105 | /** |
||
106 | * Return's the logger's channel name to use. |
||
107 | * |
||
108 | * @return string The channel name |
||
109 | */ |
||
110 | public function getChannelName() |
||
114 | |||
115 | /** |
||
116 | * Return's the logger's unique name to use. |
||
117 | * |
||
118 | * @return string The unique name |
||
119 | */ |
||
120 | public function getName() |
||
124 | |||
125 | /** |
||
126 | * Return's the factory used to create the logger instance. |
||
127 | * |
||
128 | * @return string The factory to use |
||
129 | */ |
||
130 | public function getFactory() |
||
134 | |||
135 | /** |
||
136 | * Return's the logger's type to use. |
||
137 | * |
||
138 | * @return string The type |
||
139 | */ |
||
140 | public function getType() |
||
144 | |||
145 | /** |
||
146 | * Return's the array with the logger's processors. |
||
147 | * |
||
148 | * @return \Doctrine\Common\Collections\ArrayCollection The ArrayCollection with the processors |
||
149 | */ |
||
150 | public function getProcessors() |
||
154 | |||
155 | /** |
||
156 | * Return's the array with the logger's handlers. |
||
157 | * |
||
158 | * @return \Doctrine\Common\Collections\ArrayCollection The ArrayCollection with the handlers |
||
159 | */ |
||
160 | public function getHandlers() |
||
164 | } |
||
165 |