1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #ifndef BASE_TEST_SCOPED_LOGGING_SETTINGS_H_
- #define BASE_TEST_SCOPED_LOGGING_SETTINGS_H_
- #include "base/logging.h"
- namespace logging {
- class BASE_EXPORT ScopedLoggingSettings {
- public:
- ScopedLoggingSettings();
- ~ScopedLoggingSettings();
- ScopedLoggingSettings(const ScopedLoggingSettings&) = delete;
- ScopedLoggingSettings& operator=(const ScopedLoggingSettings&) = delete;
- #if defined(OS_CHROMEOS)
- void SetLogFormat(LogFormat) const;
- #endif
- private:
- bool enable_process_id_;
- bool enable_thread_id_;
- bool enable_timestamp_;
- bool enable_tickcount_;
- int min_log_level_;
- LogMessageHandlerFunction message_handler_;
- #if defined(OS_CHROMEOS)
- LogFormat log_format_;
- #endif
- };
- }
- #endif
|