X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FLogger%2FFileTarget.hh;h=ccd78fcbc3ad4a670e239b2b095b3825a4c93e6c;hb=8da6e83b001f0ae8383af7eb4b3e3a079178a777;hp=5c4cc342944896ea34ca9f75bf46c4b0f9b3bc8a;hpb=412024ed31a4ab4eaea7a4165a434f8efebee325;p=senf.git diff --git a/Utils/Logger/FileTarget.hh b/Utils/Logger/FileTarget.hh index 5c4cc34..ccd78fc 100644 --- a/Utils/Logger/FileTarget.hh +++ b/Utils/Logger/FileTarget.hh @@ -65,16 +65,23 @@ namespace log { ///\name Structors and default members ///@{ - explicit FileTarget(std::string file); ///< Construct FileTarget writing to \a file + explicit FileTarget(std::string const & filename); + ///< Construct FileTarget writing to \a file ///@} /////////////////////////////////////////////////////////////////////////// void reopen(); ///< Reopen %log after log-file rotation - void reopen(std::string file); ///< Reopen %log under a new name + void reopen(std::string const & file); ///< Reopen %log under a new name private: std::string file_; + + struct RegisterConsole { + RegisterConsole(); + static void create(std::string const & filename); + static RegisterConsole instance; + }; }; }}