Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(994)

Unified Diff: base/vlog.h

Issue 4164011: Integrate ETW with VLOG logging. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/logging_win.cc ('k') | base/vlog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/vlog.h
===================================================================
--- base/vlog.h (revision 65044)
+++ base/vlog.h (working copy)
@@ -28,21 +28,29 @@
// code in source files "my_module.*" and "foo*.*" ("-inl" suffixes
// are also disregarded for this matching).
//
+ // |log_severity| points to an int that stores the log level. If a valid
+ // |v_switch| is provided, it will set the log level, and the default
+ // vlog severity will be read from there..
+ //
// Any pattern containing a forward or backward slash will be tested
// against the whole pathname and not just the module. E.g.,
// "*/foo/bar/*=2" would change the logging level for all code in
// source files under a "foo/bar" directory.
VlogInfo(const std::string& v_switch,
- const std::string& vmodule_switch);
+ const std::string& vmodule_switch,
+ int* min_log_level);
~VlogInfo();
// Returns the vlog level for a given file (usually taken from
// __FILE__).
- int GetVlogLevel(const base::StringPiece& file);
+ int GetVlogLevel(const base::StringPiece& file) const;
static const int kDefaultVlogLevel;
private:
+ void SetMaxVlogLevel(int level);
+ int GetMaxVlogLevel() const;
+
// VmodulePattern holds all the information for each pattern parsed
// from |vmodule_switch|.
struct VmodulePattern {
@@ -57,8 +65,8 @@
MatchTarget match_target;
};
- int max_vlog_level_;
std::vector<VmodulePattern> vmodule_levels_;
+ int* min_log_level_;
DISALLOW_COPY_AND_ASSIGN(VlogInfo);
};
Property changes on: base\vlog.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « base/logging_win.cc ('k') | base/vlog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698