Bug #59013
SystemLogger does not log additional arguments
Status: | Closed | Start date: | 2014-05-21 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Bastian Waidelich | % Done: | 0% |
|
Category: | Log | |||
Target version: | - | |||
PHP Version: | Complexity: | |||
Has patch: | No | Affected Flow version: | Git master |
Description
The SystemLogger Interface supports additional arguemtns on exception logging.
But the dont appear in the logfile.
History
#1 Updated by Bastian Waidelich about 1 year ago
- Category set to Log
- Status changed from New to Needs Feedback
- Assigned To set to Bastian Waidelich
Hi Carsten,
can you please add more details, this is not reproducible.. For example: The router calls
1$this->systemLogger->log('Router resolve(): Could not resolve a route for building an URI for the given route values.', LOG_WARNING, $routeValues);
which correctly creates
14-05-22 10:01:53 WARNING Flow Router resolve(): Could not resolve a route for building an URI for the given route values. @action => someaction @controller => some\controller @package => some.package
in the log
#2 Updated by Carsten Bleicker about 1 year ago
hmm,
i used the exception logging. maybe this is the reason why its not reproducable?
$this->systemLogger->logException($noConverterFoundException, ['JobLabel' => $this->getLabel(), 'identifier' => $this->getIdentifier(), 'className' => $this->getClassName()]);
#3 Updated by Bastian Waidelich about 1 year ago
I just recreated the example:
1$this->systemLogger->logException(new \TYPO3\Flow\Exception('Test Exception', 123), ['JobLabel' => 'someLabel', 'identifier' => 'someIdentifier', 'className' => 'someClassName']);
Creates
14-05-22 10:14:25 CRITICAL Flow Uncaught exception #123: Test Exception - See also: 2014052210142421e9ae.txt JobLabel => someLabel identifier => someIdentifier className => someClassName
Can I close the issue?
#4 Updated by Carsten Bleicker about 1 year ago
Oh, sorry for this one.
I expected the additional info in the exception log itself :)
Please close it.
#5 Updated by Bastian Waidelich about 1 year ago
- Status changed from Needs Feedback to Closed