X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FLogger%2FAreaRegistry.cc;h=11bec47221d3c40162371c1b460a874652db681c;hb=81f84badf27b66dbadec9890646ca1193e998505;hp=ed385504f1377b71872fa5fc5add28953a648fce;hpb=a1a6c76a214ad1935032826713cabaf9ac57bf07;p=senf.git diff --git a/Utils/Logger/AreaRegistry.cc b/Utils/Logger/AreaRegistry.cc index ed38550..11bec47 100644 --- a/Utils/Logger/AreaRegistry.cc +++ b/Utils/Logger/AreaRegistry.cc @@ -36,6 +36,15 @@ /////////////////////////////////////////////////////////////////////////// // senf::log::detail::AreaBase +prefix_ senf::log::detail::AreaBase::AreaBase() + : alive_ (true) +{} + +prefix_ senf::log::detail::AreaBase::~AreaBase() +{ + alive_ = false; +} + prefix_ void senf::log::detail::AreaBase::updateRoutingCache(Target & target, StreamBase const & stream, unsigned limit) @@ -84,9 +93,9 @@ prefix_ void senf::log::detail::AreaBase::removeRoutingCache(Target & target, routingCache_[stream.index].limit = l; } -prefix_ void senf::log::detail::AreaBase::write(boost::posix_time::ptime timestamp, +prefix_ void senf::log::detail::AreaBase::write(time_type timestamp, StreamBase const & stream, unsigned level, - std::string msg) + std::string const & msg) const { if (stream.index >= routingCache_.size())