[Bro] Add timestamp micro in Logger.cc ?
rmkml
rmkml at wanadoo.fr
Sat Jul 10 16:33:22 PDT 2004
Hi,
I use bro with syslog event,
I would like add timestamp micro in Logger.cc,
but I don't say,
possible help me ?
in hack this file / function in 09a2 please.
Regards
Rmkml at Wanadoo.fr
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 ' '
else
sub_msg = msg;
}
syslog(LOG_NOTICE, "%s", sub_msg);
}
More information about the Bro
mailing list