X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FLogger%2FFileTarget.hh;h=5a80a7a0c84081cb382d43fbb9b4c57299d23c0e;hb=5443435c4c2b6e4386c5334b5b8358273f2bae93;hp=11543d74177ab35a4141117a9e2cbb08e2bc1fed;hpb=a22f6d21df6c911d65f76d7731bcf92b1906bb09;p=senf.git diff --git a/Utils/Logger/FileTarget.hh b/Utils/Logger/FileTarget.hh index 11543d7..5a80a7a 100644 --- a/Utils/Logger/FileTarget.hh +++ b/Utils/Logger/FileTarget.hh @@ -69,7 +69,7 @@ namespace log { ///\name Structors and default members ///@{ - explicit FileTarget(std::string const & filename); + explicit FileTarget(std::string const & filename, std::string const & nodename = ""); ///< Construct FileTarget writing to \a file ///@} @@ -78,13 +78,15 @@ namespace log { void reopen(); ///< Reopen %log after log-file rotation void reopen(std::string const & file); ///< Reopen %log under a new name + std::string const & filename() const; ///< Return current log file name + private: std::string file_; struct RegisterConsole { RegisterConsole(); static boost::shared_ptr create( - std::string const & filename); + std::string const & filename, std::string const & nodename); static RegisterConsole instance; }; };