diff options
author | <shinichiro.hamaji@gmail.com> | 2011-09-05 07:58:38 +0000 |
---|---|---|
committer | <shinichiro.hamaji@gmail.com> | 2011-09-05 07:58:38 +0000 |
commit | b1afbe7b3caab5cc4a3ffa6d9250adb282508e62 (patch) | |
tree | b53064ff88ba0385e4256d6b1eb91190886e1cff /doc | |
parent | 54421697f4c0650b13c54ee16d6c44d5e912fda8 (diff) | |
download | glog-b1afbe7b3caab5cc4a3ffa6d9250adb282508e62.tar.gz glog-b1afbe7b3caab5cc4a3ffa6d9250adb282508e62.tar.bz2 glog-b1afbe7b3caab5cc4a3ffa6d9250adb282508e62.zip |
Add google:: prefixes for COUNTER in glog's document
http://code.google.com/p/google-glog/issues/detail?id=92
git-svn-id: https://google-glog.googlecode.com/svn/trunk@95 eb4d4688-79bd-11dd-afb4-1d65580434c0
Diffstat (limited to 'doc')
-rw-r--r-- | doc/glog.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/glog.html b/doc/glog.html index 4dce0dd..a2d093d 100644 --- a/doc/glog.html +++ b/doc/glog.html @@ -186,19 +186,19 @@ a message at certain intervals. This kind of logging is most useful for informational messages. <pre> - LOG_EVERY_N(INFO, 10) << "Got the " << COUNTER << "th cookie"; + LOG_EVERY_N(INFO, 10) << "Got the " << google::COUNTER << "th cookie"; </pre> <p>The above line outputs a log messages on the 1st, 11th, 21st, ... times it is executed. Note that the special -<code>COUNTER</code> value is used to identify which repetition is +<code>google::COUNTER</code> value is used to identify which repetition is happening. <p>You can combine conditional and occasional logging with the following macro. <pre> - LOG_IF_EVERY_N(INFO, (size > 1024), 10) << "Got the " << COUNTER + LOG_IF_EVERY_N(INFO, (size > 1024), 10) << "Got the " << google::COUNTER << "th big cookie"; </pre> @@ -206,11 +206,11 @@ following macro. the output to the first n occurrences: <pre> - LOG_FIRST_N(INFO, 20) << "Got the " << COUNTER << "th cookie"; + LOG_FIRST_N(INFO, 20) << "Got the " << google::COUNTER << "th cookie"; </pre> <p>Outputs log messages for the first 20 times it is executed. Again, -the <code>COUNTER</code> identifier indicates which repetition is +the <code>google::COUNTER</code> identifier indicates which repetition is happening. <h2><A NAME=debug>Debug Mode Support</A></h2> @@ -225,7 +225,7 @@ application due to excessive logging. DLOG_IF(INFO, num_cookies > 10) << "Got lots of cookies"; - DLOG_EVERY_N(INFO, 10) << "Got the " << COUNTER << "th cookie"; + DLOG_EVERY_N(INFO, 10) << "Got the " << google::COUNTER << "th cookie"; </pre> <h2><A NAME=check>CHECK Macros</A></h2> @@ -392,11 +392,11 @@ opposed to a severity level. "program with --v=1 or more"; VLOG_EVERY_N(1, 10) << "I'm printed every 10th occurrence, and when you run the program " - "with --v=1 or more. Present occurence is " << COUNTER; + "with --v=1 or more. Present occurence is " << google::COUNTER; VLOG_IF_EVERY_N(1, (size > 1024), 10) << "I'm printed on every 10th occurence of case when size is more " " than 1024, when you run the program with --v=1 or more. "; - "Present occurence is " << COUNTER; + "Present occurence is " << google::COUNTER; </pre> <h2> <A name="signal">Failure Signal Handler</A> </h2> |