acimpoeru / google-glog

Automatically exported from code.google.com/p/google-glog
Other
0 stars 0 forks source link

LOG_AT_LEVEL macro needs to reference LogMessage with namespace #43

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. int level = google::INFO; LOG_AT_LEVEL(level) << "Test";
2.
3.

What is the expected output? What do you see instead?
Should compile successfully but received:
error: ‘COMPACT_GOOGLE_LOG_kSeverityToLevel’ was not declared in this scope

What version of the product are you using? On what operating system?
0.3.0, mac & linux

Please provide any additional information below.
Original macro:
#define LOG_AT_LEVEL(severity) LogMessage(__FILE__, __LINE__, severity).stream()
Macro should be:
#define LOG_AT_LEVEL(severity) google::LogMessage(__FILE__, __LINE__, 
severity).stream()
This will then be consistent with the other LOGxxx macros.

Original issue reported on code.google.com by JeffreyD...@gmail.com on 23 Mar 2010 at 1:42

GoogleCodeExporter commented 8 years ago

Original comment by shinichi...@gmail.com on 28 May 2010 at 6:16