summaryrefslogtreecommitdiff
path: root/runtime/base/logging.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/base/logging.h')
-rw-r--r--runtime/base/logging.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/runtime/base/logging.h b/runtime/base/logging.h
index ae83e331fd..cc1a4a1e62 100644
--- a/runtime/base/logging.h
+++ b/runtime/base/logging.h
@@ -254,6 +254,16 @@ class LogMessage {
DISALLOW_COPY_AND_ASSIGN(LogMessage);
};
+// Allows to temporarily change the minimum severity level for logging.
+class ScopedLogSeverity {
+ public:
+ explicit ScopedLogSeverity(LogSeverity level);
+ ~ScopedLogSeverity();
+
+ private:
+ LogSeverity old_;
+};
+
} // namespace art
#endif // ART_RUNTIME_BASE_LOGGING_H_