[Dovecot] Logging a special message into Dovecot source code
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.
-- *Regards Meisam Navaki Arefi, * *System Programmer, * ** *Bayan Co. * * *
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.
-- *Regards Meisam Navaki Arefi, * *System Programmer, * ** *Bayan Co. * * *
--
*Regards Meisam Navaki Arefi, * *M.Sc student,Computer Science, * ** *Amirkabir University Of Technology * *424 Hafez Avenue, Tehran ,Iran*
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@localdomain.org
participants (2)
-
Meisam Navaki
-
Pascal Volk