X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Utils%2FLogger%2FDefinitions.hh;h=70e9131323ee685f850355de1d0c897ad5796ccf;hb=b41b8147c7a2d40e2f69471e183840be8a0b95da;hp=5e9d5cc69daa3d1ab7eeb0f2e616d072e5b3f640;hpb=61419d9a2e1060f7ede22fa19fd9d0b401bbc87a;p=senf.git diff --git a/Utils/Logger/Definitions.hh b/Utils/Logger/Definitions.hh index 5e9d5cc..70e9131 100644 --- a/Utils/Logger/Definitions.hh +++ b/Utils/Logger/Definitions.hh @@ -60,6 +60,8 @@ namespace log { typedef runtimeLimit_ runtimeLimit; \ typedef compileLimit_ compileLimit; \ static std::string name() { return instance().v_name(); } \ + unsigned defaultRuntimeLimit() const { return runtimeLimit::value; } \ + using senf::singleton::instance; \ private: \ stream() { init(); } \ friend class senf::singleton; \ @@ -70,14 +72,15 @@ namespace log { Defines a new log area named \a area. The area is defined as a symbol in the current scope. \hideinitializer - \ingroup logging */ # define SENF_LOG_DEF_AREA(area) SENF_LOG_DEF_AREA_I(area, ; ) /** \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 a - combination of \ref SENF_LOG_DEF_AREA and \ref SENF_LOG_DEFAULT_AREA with a twist. + This command declares the containing class to be it's own default log area. It is such like + a combination of \ref SENF_LOG_DEF_AREA and \ref SENF_LOG_DEFAULT_AREA with a twist. + + \hideinitializer */ # define SENF_LOG_CLASS_AREA() \ SENF_LOG_DEF_AREA_I( \ @@ -104,12 +107,11 @@ namespace log { }; \ } - /** \brief Default global log stream */ - SENF_LOG_DEF_STREAM(Debug, MESSAGE, DISABLED, DISABLED); + /** \brief Default global log stream */ + SENF_LOG_DEF_STREAM(Debug, MESSAGE, MESSAGE, MESSAGE); - /** \brief Default global log area */ - SENF_LOG_DEF_AREA_I(DefaultArea, - std::string v_name() const { return ""; }); + /** \brief Default global log area */ + SENF_LOG_DEF_AREA(DefaultArea); ///\} ///\}