[Flow] Logging changes to entities
Pankaj Lele
pankaj at lelesys.com
Sat Jun 1 13:31:30 CEST 2013
Hi Jan,
> Thanks for the Info Pankaj.
> Do you generally have further Infos about Logging in Flow?
> I think about something to close the gap of knowledge of the documentation...
I will try to describe something in quick. There is an interface for
log backend and logger. Some default implementations of log backends
are provided by Flow. You can have look at available backends in class
namespace \TYPO3\Flow\Log\Backend. Then there is a default
implementation \TYPO3\Flow\Log\Logger. The
\TYPO3\Flow\Log\LoggerFactory is used to instantiate the logger.
1. Have look at TYPO3.Flow/Configuration/Settings.yaml and search for "log:"
2. Have look at TYPO3.Flow/Configuration/Objects.yaml and search for "Logger"
3. For an example of how to use logger have look at class
\TYPO3\Flow\Security\Aspect\LoggingAspect
If you correctly follow #1 to 3 in your package then you can get your
PersistenceLogger working in few minutes :)
-Pankaj
--
Pankaj Lele
CTO - Lelesys, India
http://www.lelesys.com
Twitter: @pankajlele
More information about the Flow
mailing list