[Bro] Add micro timestamp in Logger.cc ? (to syslog)
rmkml at wanadoo.fr
Sun Sep 5 10:05:43 PDT 2004
Thanks answers guru,
void Logger::Log(const char* msg)
int has_timestamp = fabs(atof(msg) - network_time) <= 30.0;
if ( enabled )
// const char* sub_msg = msg;
// if ( has_timestamp )
// Don't include the timestamp in the logging,
// as it gets tacked on by syslog anyway.
// sub_msg = strchr(sub_msg, ' ');
// if ( sub_msg )
// ++sub_msg; // skip over ' '
// sub_msg = msg;
syslog(LOG_NOTICE, "%s", sub_msg);
but syslog not contains micro timestamp,
possible help me please ?
Rmkml at Wanadoo.fr
On Sun, 5 Sep 2004, Vern Paxson wrote:
> Date: Sun, 05 Sep 2004 01:22:35 -0700
> From: Vern Paxson <vern at icir.org>
> To: rmkml <rmkml at wanadoo.fr>
> Cc: bro at lbl.gov
> Subject: Re: [Bro] Add micro timestamp in Logger.cc ? (to syslog)
>> I use bro with syslog event,
>> I would like add micro timestamp in Logger.cc to syslog event,
>> but I don't say,
>> possible help me ?
>> in hack this file / function in 09a3 please.
> The general way to do this is to search the source for here what's going
> on is done. In this case, a search on "syslog" will locate the code in
> Logger.cc that's doing this.
More information about the Bro