PDA

Просмотр полной версии : [9836] Make log output code more consistent for diff build modes.


newsbot
04.05.2010, 23:00
<pre>m src/game/AchievementMgr.cpp
m src/game/GridNotifiers.cpp
m src/game/Map.cpp
m src/game/Player.cpp
m src/game/Transports.cpp
m src/game/WorldSession.cpp
m src/game/WorldSocket.cpp
m src/game/WorldSocketMgr.cpp
m src/shared/ByteBuffer.h
m src/shared/Log.cpp
m src/shared/Log.h
m src/shared/revision_nr.h

[9836] Make log output code more consistent for diff build modes.

* Make possible have debug output if build in release mode.
* But preserver current optimization in avoid debug output args
calculation if debug ouput disabled if done using DEBUG_LOG
* Implement in same way BASIC_LOG, DETAIL_LOG. Recommended use
its instead explicit access to sLog
* Use variadic macros for DEBUG_LOG and other new defines.
All supported VS/GCC have its support as C++ extension.
* Add DEBUG_FILTER_LOG and semilar defines for filered log output and use its.
* Also move recent added debug output for transport events under LOG_FILTER_TRANSPORT_MOVES</pre>



Дальше... (http://github.com/mangos/mangos/commit/131a84ef540db37af56e580a69905582b82e9d7b)