X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FLogger%2FLogFormat.hh;h=4e79978a695d98e0892cd41641479910eafa0db5;hb=61dc3812717cdc89fa2402006d4009236b72dc8f;hp=2c4ff00fd699d2a030047374582122de5861db40;hpb=07b8c0784c854893cd1a4ecb9aa051a625ebe17e;p=senf.git diff --git a/Utils/Logger/LogFormat.hh b/Utils/Logger/LogFormat.hh index 2c4ff00..4e79978 100644 --- a/Utils/Logger/LogFormat.hh +++ b/Utils/Logger/LogFormat.hh @@ -29,6 +29,7 @@ // Custom includes #include #include "Target.hh" +#include "../Console/LazyDirectory.hh" //#include "LogFormat.mpp" ///////////////////////////////hh.p//////////////////////////////////////// @@ -41,6 +42,7 @@ namespace detail { { public: LogFormat(); + explicit LogFormat(console::ScopedDirectory<> & dir); void showTime(bool flag = true); ///< Enable or disable output of time field void showStream(bool flag = true); ///< Enable or disable output of stream field @@ -67,9 +69,12 @@ namespace detail { std::string prefix(time_type timestamp, std::string const & stream, std::string const & area, unsigned level); bool isPlainFormat() const; + void consoleFormat(std::ostream & os); private: + std::string tag_; + std::string timeFormat_; std::stringstream datestream_; bool noformat_; bool showTime_;