1 | <?php |
||
36 | class Logger |
||
37 | { |
||
38 | /** @var LoggerInterface */ |
||
39 | private $loggerImplementation; |
||
40 | |||
41 | /** @var \TYPO3\CMS\Extbase\Object\ObjectManagerInterface */ |
||
42 | protected $objectManager; |
||
43 | |||
44 | /** @var Configuration */ |
||
45 | protected $configuration; |
||
46 | |||
47 | /** |
||
48 | * @param LoggerInterface $loggerImplementation |
||
49 | */ |
||
50 | public function injectLoggerImplementation(LoggerInterface $loggerImplementation) |
||
54 | |||
55 | /** |
||
56 | * @param $message, The Message to log |
||
57 | * @param int $severity type and severity of log entry |
||
58 | * @param array|null $additionalData optional Array of additional data for the log entry which will be logged too |
||
59 | * @param string|null $packageKey optional string with a free key for the application so the log entries are easier |
||
60 | * to find |
||
61 | * @return void |
||
62 | */ |
||
63 | 10 | public function log( |
|
73 | |||
74 | /** |
||
75 | * @return bool |
||
76 | */ |
||
77 | public function isLoggingEnabled() |
||
81 | |||
82 | /** |
||
83 | * @return int |
||
84 | */ |
||
85 | public function getLogLevel() |
||
89 | |||
90 | /** |
||
91 | * @return Configuration |
||
92 | */ |
||
93 | protected function getConfiguration() |
||
100 | |||
101 | /** |
||
102 | * @return \TYPO3\CMS\Extbase\Object\ObjectManagerInterface |
||
103 | */ |
||
104 | protected function getObjectManager() |
||
111 | |||
112 | /** |
||
113 | * @return LoggerInterface |
||
114 | */ |
||
115 | private function getLoggerImplementation() |
||
126 | } |
||
127 |