[horde] log when email is deleted
Jan Schneider
jan at horde.org
Fri Feb 16 12:10:42 UTC 2018
Zitat von Ralf Lang <lang at b1-systems.de>:
> Am 15.02.2018 um 23:06 schrieb Jan Schneider:
>>
>> Zitat von Mike Poznecki <poz_sa at yahoo.com>:
>>
>>> Hi, I would like to write to the log every time someone deletes an
>>> email. Where is the best place in code to write out to the log using
>>> Horde::log? I was looking in Socket.php but I"m not sure if that is
>>> where to put it. (or what function to put it in.) Thanks.
>>
>> Horde_Imap_Client_Socket might indeed be a good place because it's used
>> for all IMAP communication across Horde. So you are sure to catch all
>> kind of deletions. That would be in the _deleteMsgs() method then.
>>
> I think,
> In this library location, probably the Horde::log shortcut would be
> wrong and using an (injected) Logger interface would be neeeded.
For simple debugging purposes a Horde::log() would be sufficient.
--
Jan Schneider
The Horde Project
https://www.horde.org/
More information about the horde
mailing list