[Dovecot] Logging a special message into Dovecot source code

Pascal Volk user+dovecot at localhost.localdomain.org
Wed Jul 6 23:14:06 EEST 2011


On 07/06/2011 08:47 AM Meisam Navaki wrote:
> Hi,
> I wanna modify Dovecot source code.For that,I need to know how can we log a
> special message into Dovecot source code?
> I tried to write a function to write a message in a file and added it to
> Dovecot source code,but it didn't work.
> I'm wondering if we can use Dovecote logging functions,but I don't know what
> are those functions and how can we use them.
> Thanks in advance.
> 

There are the functions i_{panic,fatal,error,warning,info,debug}. See
also:
http://hg.dovecot.org/dovecot-2.0/file/537d4b6d9a7a/src/lib/failures.h#l50


Regards,
Pascal
-- 
The trapper recommends today: f007ba11.1118722 at localdomain.org


More information about the dovecot mailing list