X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=senf%2FUtils%2FLogger%2FDefinitions.hh;h=64c0812ce192b54ff7594443c0e6fdcf2d2d2568;hb=5eab224e79298ff50571a50c4178331b24adbc35;hp=e77486f73c97483664edfafe6f8bc408fd8c1bfd;hpb=0003d55730b447329342161d12cf2ed23b63459e;p=senf.git 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