/** \file
\brief AreaRegistry internal header */
-#ifndef IH_AreaRegistry_
-#define IH_AreaRegistry_ 1
+#ifndef IH_SENF_Utils_Logger_AreaRegistry_
+#define IH_SENF_Utils_Logger_AreaRegistry_ 1
// Custom includes
#include <string>
/** \brief Internal: Area base class */
struct AreaBase
{
+ AreaBase();
virtual ~AreaBase();
std::string fullName() const;
virtual std::string v_name() const;
void init();
+ bool alive() const;
unsigned limit(StreamBase const & stream) const;
void updateRoutingCache(Target & target, StreamBase const & stream, unsigned limit) const;
void removeRoutingCache(Target & target, StreamBase const & stream) const;
void write(time_type timestamp, StreamBase const & stream, unsigned level,
- std::string msg) const;
+ std::string const & msg) const;
private:
struct RouteEntry {
};
typedef std::vector<CacheEntry> RoutingCache;
mutable RoutingCache routingCache_;
+ bool alive_;
};
}}}