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

@ -3,7 +3,7 @@
#include <algorithm>
#include "FileAnalyzer.h"
#include "Logger.h"
#include "Reporter.h"
#ifdef HAVE_LIBMAGIC
magic_t File_Analyzer::magic = 0;
@ -76,11 +76,11 @@ void File_Analyzer::InitMagic(magic_t* magic, int flags)
*magic = magic_open(flags);
if ( ! *magic )
bro_logger->Error(fmt("can't init libmagic: %s", magic_error(*magic)));
reporter->Error(fmt("can't init libmagic: %s", magic_error(*magic)));
else if ( magic_load(*magic, 0) < 0 )
{
bro_logger->Error(fmt("can't load magic file: %s", magic_error(*magic)));
reporter->Error(fmt("can't load magic file: %s", magic_error(*magic)));
magic_close(*magic);
*magic = 0;
}