mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00

The order in which the plugin initializers are executed is compiler dependent. With this change, Tags will always be generated in alphabetical ordering, not in compiler-dependent order.
30 lines
582 B
C++
30 lines
582 B
C++
// See the file "COPYING" in the main distribution directory for copyright.
|
|
|
|
#include "Component.h"
|
|
#include "Manager.h"
|
|
#include "../Desc.h"
|
|
#include "../util.h"
|
|
|
|
using namespace logging;
|
|
|
|
Component::Component(const std::string& name, factory_callback arg_factory)
|
|
: plugin::Component(plugin::component::WRITER, name)
|
|
{
|
|
factory = arg_factory;
|
|
}
|
|
|
|
void Component::Initialize()
|
|
{
|
|
InitializeTag();
|
|
log_mgr->RegisterComponent(this, "WRITER_");
|
|
}
|
|
|
|
Component::~Component()
|
|
{
|
|
}
|
|
|
|
void Component::DoDescribe(ODesc* d) const
|
|
{
|
|
d->Add("Log::WRITER_");
|
|
d->Add(CanonicalName());
|
|
}
|