[horde] log when email is deleted

Ralf Lang lang at b1-systems.de
Fri Feb 16 17:15:58 UTC 2018


Am 16.02.2018 um 13:10 schrieb Jan Schneider:
> 
> 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.
> 
Right, I confused it with adding a permanent logging method.
Sorry.

-- 
Ralf Lang
Linux Consultant / Developer
Tel.: +49-170-6381563
Mail: lang at b1-systems.de
B1 Systems GmbH
Osterfeldstraße 7 / 85088 Vohburg / http://www.b1-systems.de
GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537


More information about the horde mailing list