/** \file
\brief Target internal header */
-#ifndef IH_Target_
-#define IH_Target_ 1
+#ifndef IH_SENF_Utils_Logger_Target_
+#define IH_SENF_Utils_Logger_Target_ 1
// Custom includes
#include <memory>
#include <boost/type_traits/is_same.hpp>
#include <boost/static_assert.hpp>
+#include "../Console/LazyDirectory.hh"
///////////////////////////////ih.p////////////////////////////////////////
using senf::singleton<TargetRegistry>::instance;
void write(StreamBase const & stream, AreaBase const & area, unsigned level,
- std::string msg);
+ std::string const & msg);
void routed();
bool fallbackRouting();
private:
TargetRegistry();
- void registerTarget(Target * target);
+ void registerTarget(Target * target, std::string const & name);
void unregisterTarget(Target * target);
typedef std::set<Target *> Targets;
Targets targets_;
bool fallbackRouting_;
+
+ console::LazyDirectory consoleDir_;
friend class senf::log::Target;
friend class senf::singleton<TargetRegistry>;
/** \brief Internal: Write log message */
template <class Stream, class Area, class Level>
- void write(std::string msg);
+ void write(std::string const & msg);
#ifndef DOXYGEN