12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- #ifndef BASE_VLOG_H_
- #define BASE_VLOG_H_
- #include <string>
- #include <vector>
- #include "base/base_export.h"
- #include "base/strings/string_piece.h"
- namespace logging {
- class BASE_EXPORT VlogInfo {
- public:
- static const int kDefaultVlogLevel;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- VlogInfo(const std::string& v_switch,
- const std::string& vmodule_switch,
- int* min_log_level);
- VlogInfo(const VlogInfo&) = delete;
- VlogInfo& operator=(const VlogInfo&) = delete;
- ~VlogInfo();
-
-
- int GetVlogLevel(const base::StringPiece& file) const;
- private:
- void SetMaxVlogLevel(int level);
- int GetMaxVlogLevel() const;
-
-
- struct VmodulePattern;
- std::vector<VmodulePattern> vmodule_levels_;
- int* min_log_level_;
- };
- BASE_EXPORT bool MatchVlogPattern(const base::StringPiece& string,
- const base::StringPiece& vlog_pattern);
- }
- #endif
|