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
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);
}