Utils/Console: Add short help to 'ls' output
[senf.git] / Utils / Logger / LogFormat.hh
index 2c4ff00..4e79978 100644 (file)
@@ -29,6 +29,7 @@
 // Custom includes
 #include <sstream>
 #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_;