2025-08-29 20:59 CEST

spring: develop ac5279b9 Diff ] Back to Repository ]
Author Committer Branch Timestamp Parent
tvo tvo develop 2008-10-25 15:22:04 develop 7c51ad06
Changeset Added logging subsystem infrastructure.

Logsubsystems can be defined using global variable:
    static CLogSubsystem LOG_BLAH("blah");

And can then be used as first argument to logOutput.Print:
    logOutput.Print(LOG_BLAH, "blabla");

Each CLogSubsystem can be enabled/disabled independently.

The CLogSubsystems link together in linked list, allowing for simple reflection.
This is used by logOutput initialization code to enable all CLogSubsystems which
occur in the configuration setting "LogSubsystems" or in the environment variable
"SPRING_LOG_SUBSYSTEMS". (This all happens automagically for all log subsystems..)

The log subsystem name is put before the log message in infolog.txt / stdout.



git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@6879 37977431-3df6-0310-b722-df95706aa16b
mod - rts/ExternalAI/AICallback.cpp Diff ] File ]
mod - rts/Game/Game.cpp Diff ] File ]
mod - rts/Game/UI/InfoConsole.cpp Diff ] File ]
mod - rts/Game/UI/InfoConsole.h Diff ] File ]
mod - rts/Game/UI/LuaUI.cpp Diff ] File ]
mod - rts/Lua/LuaUnsyncedRead.cpp Diff ] File ]
mod - rts/Map/SM3/terrain/TerrainBase.h Diff ] File ]
mod - rts/Sim/Misc/DamageArrayHandler.cpp Diff ] File ]
mod - rts/System/EventClient.cpp Diff ] File ]
mod - rts/System/EventHandler.cpp Diff ] File ]
mod - rts/System/EventHandler.h Diff ] File ]
mod - rts/System/LogOutput.cpp Diff ] File ]
mod - rts/System/LogOutput.h Diff ] File ]
mod - rts/System/Platform/Linux/DataDirLocater.cpp Diff ] File ]