You can either: - code your custom log writer that persists entities (unsuggested, mainly for the overhead. Logging is not that complex, it usually doesn't need the ORM) - code your custom log writer that uses the DBAL connection - extract the PDO connection from the DBAL connection and pass it to a Zend\Db\Adapter\Adapter (saves you the task of coding the Zend\Log\Writer yourself)
Cheers, Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 1 April 2014 12:57, Nima Sadjadi <[email protected]> wrote: > I am interested to use zend/log with doctrine to log info in db. I guess > for this purpose i should not use entityManager but dbal? Right? I was able > to connect to db via dbal, but how to use this connection as a db adapter > for zend/log? > > -- > You received this message because you are subscribed to the Google Groups > "doctrine-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/doctrine-user. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "doctrine-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/doctrine-user. For more options, visit https://groups.google.com/d/optout.
