From: <sv...@ww...> - 2004-07-09 06:28:32
|
Author: mkrose Date: 2004-07-08 23:28:26 -0700 (Thu, 08 Jul 2004) New Revision: 1152 Modified: trunk/CSP/CSPSim/Include/Log.h trunk/CSP/SimData/CHANGES.current trunk/CSP/SimData/Include/SimData/Log.h trunk/CSP/SimData/Include/SimData/LogStream.h trunk/CSP/SimData/Include/SimData/ThreadLog.h trunk/CSP/SimData/Source/LogStream.cpp trunk/CSP/SimData/Source/Makefile Log: Simplify the logging classes considerably, and tweak the logging macros to skip the output stream formating for messages that aren't logged (due to low priority or category filtering). Previously, all messages were formatted and sent either to the real log, or dropped (one character at a time) by the underlying streambuf. When debugging is disabled, the log statements now reduce to a form that produces no code but should prevent spurious compiler warnings about unused variables (for local variables that are only referenced in the log output). Changed the makefile to always rebuild Version.cpp, so the 'build on [date]' message will be accurate. Browse at: https://www.zerobar.net/viewcvs/viewcvs.cgi?view=rev&rev=1152 Diff omitted (14539 bytes). |