[Flow] Question about logging
Robin Lehrmann
role at vkf-renzel.de
Fri Sep 27 10:18:38 CEST 2013
Hi François,
Am 27.09.2013 09:37, schrieb François Suter:
> Hi all,
>
> The chapter about logging being empty in The Definitive Guide, I would
> need a bit of help on the topic. I have found the base settings in
> /Packages/Framework/TYPO3.Flow/Configuration/Settings.yaml.
>
> Can I add my own logger in the same way? Something like:
I think you can adding a new importLoggerInterface to your Application
in the Objects.yaml.
Look at the Objects.yaml of TYPO3.Flow.
Then you can inject the logger with:
/**
* @var \Package\Test\Log\ImportLoggerInterface
* @Flow\Inject
*/
protected $impotLogger;
if you use the LoggerFactory, you can use the following backends:
ConsoleBackend, FileBackend and NullBackend
hope it helps you
cheers
More information about the Flow
mailing list