http://forge.typo3.org/http://forge.typo3.org/themes/typo3_forge/favicon/favicon.png?17058661692015-11-19T15:11:03ZTYPO3 ForgeTYPO3 Core - Task #71684: Logging Conceptshttp://forge.typo3.org/issues/71684?journal_id=2869012015-11-19T15:11:03ZMarkus Kleinmarkus.klein@typo3.org
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Needs Feedback</i></li></ul>There are currently 4 logging variants:
<ol>
<li>Old GeneralUtility::sysLog() => $GLOBALS['TYPO3_CONF_VARS']['SYS']['systemLogLevel'] and $GLOBALS['TYPO3_CONF_VARS']['SYS']['systemLog'] options</li>
<li>New Logging API => $GLOBALS['TYPO3_CONF_VARS']['LOG'] options (not setable via Install Tool), default log file location is typo3temp/logs/typo3_*.log</li>
<li>GeneralUtility::devLog() => only used if special devlog extension is present</li>
<li>logging used for content editing/history => (sys_log, sys_history) tables</li>
</ol>
<p>First one was the first one and is used in almost all code older than 1/2 year(s).<br />Second one is used in all new code.</p> TYPO3 Core - Task #71684: Logging Conceptshttp://forge.typo3.org/issues/71684?journal_id=2869102015-11-19T15:22:27ZCarsten Bleickercarsten@bleicker.de
<ul></ul><p>Thank you Markus.</p>
<p>So GeneralUtility::sysLog() and GeneralUtility::devLog() isn't a decorator of new logging api?</p>
<p>How to configure new Logging API to log only "below" WARNING especially if Levels are so different?</p>
<p>How to configure new Logging API to log Levels into different Files?</p>
<p>Why devLog() and sysLog() isn't deprecated if there is a new PSR Logger?</p> TYPO3 Core - Task #71684: Logging Conceptshttp://forge.typo3.org/issues/71684?journal_id=2869212015-11-19T15:57:58ZMarkus Kleinmarkus.klein@typo3.org
<ul></ul><blockquote>
<p>Why devLog() and sysLog() isn't deprecated if there is a new PSR Logger?</p>
</blockquote>
<p>Simply because nobody took the time to make them a decorator. Feel free to jump in. ;-)</p>
<blockquote>
<p>How to configure new Logging API to log only "below" WARNING especially if Levels are so different?</p>
</blockquote>
<p>Add the configuration to your typo3conf/AdditionalConfiguration.php. Docs for new API is in <a class="external" href="https://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/Logging/Index.html">https://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/Logging/Index.html</a></p>
<p>For more questions I recommend to ask in the typo3-cms channel on Slack, as this is our bug tracker not our support forum. :-)<br /><a class="external" href="https://forger.typo3.org/slack">https://forger.typo3.org/slack</a></p> TYPO3 Core - Task #71684: Logging Conceptshttp://forge.typo3.org/issues/71684?journal_id=2870342015-11-20T10:29:23ZMarkus Kleinmarkus.klein@typo3.org
<ul><li><strong>Status</strong> changed from <i>Needs Feedback</i> to <i>Closed</i></li></ul> TYPO3 Core - Task #71684: Logging Conceptshttp://forge.typo3.org/issues/71684?journal_id=2870372015-11-20T10:35:43ZCarsten Bleickercarsten@bleicker.de
<ul></ul><p>Markus Klein wrote:</p>
<blockquote>
<p>Simply because nobody took the time to make them a decorator. Feel free to jump in. ;-)</p>
</blockquote>
<p>Seems there is a change needed to make this things clear.<br />Why did you close the ticket if the problem is not fixed?</p>