Commit Graph

16 Commits

Author SHA1 Message Date
2658b41ea1 relicence under Apache-2.0 2015-04-13 18:05:28 +10:00
ee455e1ae7 log: mitigate unused variable in release 2015-01-21 23:40:13 +11:00
25f6cd635b log: allow lowercase LOG_LEVEL values 2014-09-11 15:33:46 +10:00
011ac70a9d Add scoped_logger from waif 2013-03-05 21:38:51 +11:00
23c9bf17e6 Remove embedded null from log output 2012-06-14 18:26:46 +10:00
d968bd8549 Use string object for log output buffering.
Clang doesn't want to pass a char array to boost::format and I can't be
arsed finding out why.
2012-06-13 16:01:42 +10:00
0ac8785b2a Fix some whitespace errors 2012-05-30 20:20:19 +10:00
4f5d75a1df Make all check macros uppercase 2012-05-11 12:34:21 +10:00
820f28d4b1 Ensure the log is flushed at end of print 2012-05-11 12:18:27 +10:00
7281930a39 Only use abbreviated names for log levels 2012-05-11 12:18:08 +10:00
3548dcd675 Use std::array for level_to_string
* Explicitly uses the correct size.
* Remove some 'unsafe loop optimisation' warnings
2012-05-08 16:37:38 +10:00
610ca2d46d Add seconds to the output of log messages 2012-05-03 15:55:09 +10:00
d8b74be608 Read a maximum output level from the env.
Importantly this does not change whether log parameters are evaluated,
it simply prevents output to the log stream; ie, it is purely aethetic.
2012-04-26 18:22:24 +10:00
2515db00f2 Add string to level conversions 2012-04-26 18:22:05 +10:00
9f6566812b Use abbreviated strings for level outputs
The output looks pretty painful when long names are used everywhere.
2012-04-26 18:21:23 +10:00
99bdd49f2f Add first pass at logging code 2012-04-24 17:38:35 +10:00