diff options
Diffstat (limited to 'src/base/trace.cc')
-rw-r--r-- | src/base/trace.cc | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/base/trace.cc b/src/base/trace.cc index 711d49655..ff1778249 100644 --- a/src/base/trace.cc +++ b/src/base/trace.cc @@ -39,6 +39,7 @@ #include <sstream> #include <string> +#include "base/debug.hh" #include "base/misc.hh" #include "base/output.hh" #include "base/str.hh" @@ -54,8 +55,6 @@ const std::string &name() namespace Trace { -bool enabled = false; - // This variable holds the output logger for debug information. Other // than setting up/redirecting this logger, do *NOT* reference this // directly @@ -87,6 +86,18 @@ setDebugLogger(Logger *logger) debug_logger = logger; } +void +enable() +{ + Debug::SimpleFlag::enableAll(); +} + +void +disable() +{ + Debug::SimpleFlag::disableAll(); +} + ObjectMatch ignore; void |