Renaming the Logger to Reporter.

Also changing output to not include timestamps when we haven't started
processing packets yet.
This commit is contained in:
Robin Sommer 2011-07-01 09:22:33 -07:00
parent 93894eed9b
commit 66e2c3b623
123 changed files with 722 additions and 713 deletions

View file

@ -404,7 +404,7 @@ Val* internal_val(const char* name)
{
ID* id = lookup_ID(name, GLOBAL_MODULE_NAME);
if ( ! id )
bro_logger->InternalError("internal variable %s missing", name);
reporter->InternalError("internal variable %s missing", name);
return id->ID_Val();
}
@ -413,10 +413,10 @@ Val* internal_const_val(const char* name)
{
ID* id = lookup_ID(name, GLOBAL_MODULE_NAME);
if ( ! id )
bro_logger->InternalError("internal variable %s missing", name);
reporter->InternalError("internal variable %s missing", name);
if ( ! id->IsConst() )
bro_logger->InternalError("internal variable %s is not constant", name);
reporter->InternalError("internal variable %s is not constant", name);
return id->ID_Val();
}
@ -477,7 +477,7 @@ ListVal* internal_list_val(const char* name)
}
else
bro_logger->InternalError("internal variable %s is not a list", name);
reporter->InternalError("internal variable %s is not a list", name);
}
return 0;
@ -487,7 +487,7 @@ BroType* internal_type(const char* name)
{
ID* id = lookup_ID(name, GLOBAL_MODULE_NAME);
if ( ! id )
bro_logger->InternalError("internal type %s missing", name);
reporter->InternalError("internal type %s missing", name);
return id->Type();
}