Feature #46050

To decouple log file writing at Logger->logException

Added by Thiago Colares over 2 years ago.

Status:New Start date:2013-03-05
Priority:Could have Due date:
Assigned To:- % Done:

0%

Category:Log
Target version:-
PHP Version:5.3 Complexity:
Has patch:No

Description

The TYPO3\Flow\Log\Logger->logException() method perform itself the file log writing. As in log(), it could be decoupled to facilitate any override to this writing.

For example, in log(), is easily possible to set the backend as follow:

File: /project_path/Configuration/Settings.yaml

TYPO3:
  Flow:
    log:
      # Settings for Flow's default loggers
      # see more at Framework/TYPO3.Flow/Configuration/Settings
      systemLogger:
        backend: MyPackage\Log\Backend\MyFileBackend

So far, I guess the only way is to set up the Objects.yaml, am I right?

Also available in: Atom PDF