Hello A. Aniruddha,
have a look to log.c and monit.h.
You will find the _log function and the define TIMEFORMAT macro.
But I never changed the log behaviour.

>> milliseconds are not available and the format can not changed in the monitrc 
>> file.
> Ok, Thanks Lutz.
> 
> I am trying to add a LD_PRELOAD to replace syslog()/vsyslog() call
> with my function that can write to a local file ,but that also does not seem
> to work! I havent read the entire monit sources, is there some place where
> the environment is cleared ?

But I never changed the log behaviour.
On the other hand, vsyslog is used also, but I never replaced a function.

Sorry, with regards,
Lutz

Reply via email to