Meisam Navaki
2011-Jul-06 06:47 UTC
[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. * * *
Meisam Navaki
2011-Jul-06 09:24 UTC
[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. * * * -- -- *Regards Meisam Navaki Arefi, * *M.Sc student,Computer Science, * ** *Amirkabir University Of Technology * *424 Hafez Avenue, Tehran ,Iran*
Pascal Volk
2011-Jul-06 20:14 UTC
[Dovecot] Logging a special message into Dovecot source code
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