X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FLogger%2FIOStreamTarget.hh;h=8aa5829b2077fd25ef79cd939d8469f61b59a15d;hb=1f9ac79c1c2dfbb7abe22e1c816ca43d6582102b;hp=11935beae5ba51d5353345d818acd5157773f367;hpb=cf377fea0ec95f51bd4816b08b8b173b536ef949;p=senf.git diff --git a/Utils/Logger/IOStreamTarget.hh b/Utils/Logger/IOStreamTarget.hh index 11935be..8aa5829 100644 --- a/Utils/Logger/IOStreamTarget.hh +++ b/Utils/Logger/IOStreamTarget.hh @@ -79,6 +79,8 @@ namespace log { By default, the date-time will be written in extended ISO format. \param[in] format Date/Time format string */ + + void tag(std::string const & tag); protected: void v_write(time_type timestamp, std::string const & stream, @@ -88,6 +90,7 @@ namespace log { private: std::ostream & stream_; + std::string tag_; std::stringstream datestream_; bool noformat_; bool showTime_; @@ -95,7 +98,7 @@ namespace log { bool showLevel_; bool showArea_; - static char const * const LEVELNAMES_[8]; + time_type timeBase_; }; }}