From: Christian P. <cp...@us...> - 2005-04-28 10:34:15
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses/App In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2766/include/pclasses/App Modified Files: LogChannel.h Log Message: - Some small fixes for the logging framework Index: LogChannel.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/App/LogChannel.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- LogChannel.h 24 Apr 2005 11:36:31 -0000 1.2 +++ LogChannel.h 28 Apr 2005 10:34:06 -0000 1.3 @@ -40,9 +40,11 @@ public: typedef std::map<std::string, LogTarget*> TargetMap; - LogChannel(); + LogChannel(const std::string& name); ~LogChannel() throw(); + const std::string& name() const; + //! Add a logging target bool addTarget(const std::string& name, LogTarget* target); @@ -69,6 +71,7 @@ LogChannel& operator()(LogMessage::Level) throw(); private: + std::string _name; TargetMap _targets; LogMessage::Level _logLevel; }; |