mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 09:38:19 +00:00
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:
parent
93894eed9b
commit
66e2c3b623
123 changed files with 722 additions and 713 deletions
|
@ -12,7 +12,7 @@
|
|||
#include "Serializer.h"
|
||||
#include "Scope.h"
|
||||
#include "Stmt.h"
|
||||
#include "Logger.h"
|
||||
#include "Reporter.h"
|
||||
#include "Func.h"
|
||||
#include "Event.h"
|
||||
#include "EventRegistry.h"
|
||||
|
@ -911,7 +911,7 @@ bool FileSerializer::Read(UnserialInfo* info, const char* file, bool header)
|
|||
|
||||
void FileSerializer::ReportError(const char* str)
|
||||
{
|
||||
bro_logger->Error(str);
|
||||
reporter->Error(str);
|
||||
}
|
||||
|
||||
void FileSerializer::GotID(ID* id, Val* val)
|
||||
|
@ -971,7 +971,7 @@ ConversionSerializer::~ConversionSerializer()
|
|||
|
||||
bool ConversionSerializer::Convert(const char* file_in, const char* file_out)
|
||||
{
|
||||
bro_logger->InternalError("Error: Printing as XML is broken.");
|
||||
reporter->InternalError("Error: Printing as XML is broken.");
|
||||
|
||||
if ( ! serout->Open(file_out, true) )
|
||||
return false;
|
||||
|
@ -1004,19 +1004,19 @@ void ConversionSerializer::GotFunctionCall(const char* name, double time,
|
|||
|
||||
void ConversionSerializer::GotID(ID* id, Val* val)
|
||||
{
|
||||
bro_logger->Warning("ConversionSerializer::GotID not implemented");
|
||||
reporter->Warning("ConversionSerializer::GotID not implemented");
|
||||
Unref(id);
|
||||
}
|
||||
|
||||
void ConversionSerializer::GotStateAccess(StateAccess* s)
|
||||
{
|
||||
bro_logger->Warning("ConversionSerializer::GotID not implemented");
|
||||
reporter->Warning("ConversionSerializer::GotID not implemented");
|
||||
delete s;
|
||||
}
|
||||
|
||||
void ConversionSerializer::GotPacket(Packet* p)
|
||||
{
|
||||
bro_logger->Warning("ConversionSerializer::GotPacket not implemented");
|
||||
reporter->Warning("ConversionSerializer::GotPacket not implemented");
|
||||
delete p;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue