utility: added stream logging macros

For easier use with int and other basic types, new logging macros where introduced that use stringstream internally, so
heterogeneous data can be logged using the following syntax:
	LOG_INFO_STREAM(<< "hello " << 42 << '!');
This commit is contained in:
Eberhard Graether
2014-07-21 02:11:07 +02:00
parent 0d46de871a
commit 160e67a94d
4 changed files with 66 additions and 79 deletions
+3 -3
View File
@@ -1,8 +1,8 @@
ConfigManager.cpp ERROR: value path/to/nowhere is not present in config.
Graph.cpp ERROR: Can't remove member edge, without removing the child node.
TextAccess.cpp WARNING: Index 'firstLine' has to be lower or equal index 'lastLine', is 2 > 1
TextAccess.cpp WARNING: Tried to access index 9. Maximum index is 7
TextAccess.cpp WARNING: Tried to access index 9. Maximum index is 7
TextAccess.cpp WARNING: Index 'firstLine' has to be lower or equal index 'lastLine', is 3 > 2
TextAccess.cpp WARNING: Tried to access index 10. Maximum index is 8
TextAccess.cpp WARNING: Tried to access index 10. Maximum index is 8
TextAccess.cpp WARNING: Line numbers start with one, is 0
TextAccess.cpp WARNING: Line numbers start with one, is 0
TokenLocationCollection.cpp ERROR: Can't create TokenLocation with wrong boundaries.