mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
Move logging code to zeek namespaces
This commit is contained in:
parent
9a800265ff
commit
45b5c6e619
25 changed files with 135 additions and 114 deletions
|
@ -12,13 +12,13 @@
|
|||
#include "sqlite.bif.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace logging;
|
||||
using namespace writer;
|
||||
using threading::Value;
|
||||
using threading::Field;
|
||||
|
||||
SQLite::SQLite(WriterFrontend* frontend)
|
||||
: WriterBackend(frontend),
|
||||
namespace zeek::logging::writer::detail {
|
||||
|
||||
SQLite::SQLite(zeek::logging::WriterFrontend* frontend)
|
||||
: zeek::logging::WriterBackend(frontend),
|
||||
fields(), num_fields(), db(), st()
|
||||
{
|
||||
set_separator.assign(
|
||||
|
@ -112,7 +112,7 @@ bool SQLite::checkError(int code)
|
|||
}
|
||||
|
||||
bool SQLite::DoInit(const WriterInfo& info, int arg_num_fields,
|
||||
const Field* const * arg_fields)
|
||||
const Field* const * arg_fields)
|
||||
{
|
||||
if ( sqlite3_threadsafe() == 0 )
|
||||
{
|
||||
|
@ -365,3 +365,5 @@ bool SQLite::DoRotate(const char* rotated_path, double open, double close, bool
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace zeek::logging::writer::detail
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue