From: tho Date: Thu, 4 Aug 2011 12:06:16 +0000 (+0000) Subject: Logger: added SENF_LOG_DEFINE_NAMED_AREA macro X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=5eab224e79298ff50571a50c4178331b24adbc35;p=senf.git Logger: added SENF_LOG_DEFINE_NAMED_AREA macro git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1806 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/senf/Utils/Logger/Definitions.hh b/senf/Utils/Logger/Definitions.hh index e77486f..64c0812 100644 --- a/senf/Utils/Logger/Definitions.hh +++ b/senf/Utils/Logger/Definitions.hh @@ -84,6 +84,10 @@ namespace log { */ # define SENF_LOG_DEFINE_AREA(area) SENF_LOG_DEFINE_AREA_I(area, ; ) +# define SENF_LOG_DEFINE_NAMED_AREA(area, name) \ + SENF_LOG_DEFINE_AREA_I(area, \ + std::string v_name() const { return name; } ); + /** \brief Define new default log area for the class This command declares the containing class to be it's own default log area. It is such like