ManaPlus
Data Structures | Macros | Variables
logger.h File Reference

(986a3bf)

#include "localconsts.h"
#include "utils/vector.h"
#include <SDL_mutex.h>
#include <string>

Go to the source code of this file.

Data Structures

class  Logger
 

Macros

#define DEBUGLOG(str)
 
#define DEBUGLOG2(str, pos, comment)
 
#define DEBUGLOGSTR(str)
 
#define IGNOREDEBUGLOG   mIgnore = Net::isIgnorePacket(mId)
 
#define UNIMPLEMENTEDPACKET    logger->unimplemented(msg.getId())
 
#define UNIMPLEMENTEDPACKETFIELD(field)    logger->unimplemented(msg.getId(), field)
 
#define WRONGPACKETSIZE    logger->unimplemented(CAST_U32(mId), mLength, mPos)
 

Variables

Loggerlogger
 

Macro Definition Documentation

◆ DEBUGLOG

#define DEBUGLOG (   str)
Value:
if (logger && !mIgnore) \
logger->dlog(str)
Logger * logger
Definition: logger.cpp:89

Definition at line 39 of file logger.h.

◆ DEBUGLOG2

#define DEBUGLOG2 (   str,
  pos,
  comment 
)
Value:
if (logger && !mIgnore) \
logger->dlog2(str, pos, comment)

Definition at line 42 of file logger.h.

◆ DEBUGLOGSTR

#define DEBUGLOGSTR (   str)
Value:
if (logger) \
logger->dlog(str)

Definition at line 45 of file logger.h.

◆ IGNOREDEBUGLOG

#define IGNOREDEBUGLOG   mIgnore = Net::isIgnorePacket(mId)

Definition at line 48 of file logger.h.

◆ UNIMPLEMENTEDPACKET

#define UNIMPLEMENTEDPACKET    logger->unimplemented(msg.getId())

Definition at line 56 of file logger.h.

◆ UNIMPLEMENTEDPACKETFIELD

#define UNIMPLEMENTEDPACKETFIELD (   field)     logger->unimplemented(msg.getId(), field)

Definition at line 59 of file logger.h.

◆ WRONGPACKETSIZE

#define WRONGPACKETSIZE    logger->unimplemented(CAST_U32(mId), mLength, mPos)

Definition at line 62 of file logger.h.

Variable Documentation

◆ logger

Logger* logger
extern

Definition at line 89 of file logger.cpp.

Referenced by IPC::acceptLoop(), ChangeEmailDialog::action(), ChangePasswordDialog::action(), ConnectionDialog::action(), RegisterDialog::action(), Map::addAnimation(), Net::Download::addCommonFlags(), Particle::addEffect(), ParticleEngine::addEffect(), Map::addExtraLayer(), MapReader::addLayerToList(), ResourceManager::addResource(), LayoutArray::align(), Setup_Misc::apply(), Setup_Video::apply(), applyEffectByOption(), applyEffectByOption1(), ConfigManager::backupConfig(), ModernOpenGLGraphics::bindElementBuffer(), GettextHelper::bindTextDomain(), SafeOpenGLImageHelper::bindTexture(), ResourceManager::cleanUp(), ResourceManager::clearDeleted(), Joystick::close(), SoundManager::close(), compareSDLVersions(), compareVersions(), Ea::Network::connect(), AtlasManager::convertAtlas(), AtlasManager::convertEmptyAtlas(), SDLInput::convertMouseButton(), SafeOpenGLImageHelper::convertSurface(), SafeOpenGLImageHelper::convertSurfaceNormalize(), EAthena::BeingRecv::createBeing2(), MapReader::createEmptyMap(), ShadersManager::createProgram(), AtlasManager::createSDLAtlas(), ShadersManager::createShader(), GraphicsManager::createTextureSampler(), debugCallback(), Resource::decRef(), ResourceManager::deleteInstance(), ResourceManager::deleteResourceManager(), destroyGuiWindows(), Cpu::detect(), GraphicsManager::detectGraphics(), GraphicsManager::detectPixelSize(), EAthena::Network::dispatchMessages(), TmwAthena::Network::dispatchMessages(), Font::doClean(), Net::Download::downloadThread(), ServerDialog::downloadUpdate(), dumpLibs(), dumpLinkedSdlVersion(), dumpSettings(), dumpSizes(), Being::dumpSprites(), ImageHelper::dumpSurfaceFormat(), Dye::Dye(), DyePalette::DyePalette(), EffectManager::EffectManager(), SoundManager::fadeOutMusic(), LocalPlayer::fixPos(), Font::Font(), Net::MessageIn::fromServerDirection(), Game::Game(), Client::gameClear(), Client::gameExec(), Client::gameInit(), EAthena::GeneralHandler::GeneralHandler(), TmwAthena::GeneralHandler::GeneralHandler(), ImageSet::get(), ResourceManager::get(), SpriteDef::getAction(), SDL::getAllVideoModes(), Theme::getColor(), UserPalette::getColor(), ScrollArea::getImageByState(), Theme::getProgressColor(), SafeOpenGLImageHelper::glLoad(), EventsManager::handleCommonEvents(), EventsManager::handleEvents(), PIS_dotdotdot::ignore(), PIS_blinkname::ignore(), Resource::incRef(), SoundManager::info(), Joystick::init(), IPC::init(), SoundManager::init(), Perf::init(), Configuration::init(), EggSelectionDialog::initButtons(), Dirs::initConfigDir(), ConfigManager::initConfiguration(), initDefaultThemePath(), GraphicsManager::initGraphics(), GettextHelper::initLang(), Dirs::initLocalDataDir(), GraphicsManager::initOpenGLFunctions(), Dirs::initRootDir(), Dirs::initScreenshotDir(), ConfigManager::initServerConfig(), Client::initSoundManager(), Dirs::initTempDir(), Dirs::initUpdatesDir(), Dirs::initUsersDir(), Dye::instantiate(), OpenGLImageHelper::invalidate(), SafeOpenGLImageHelper::invalidate(), itemTypeFromString(), AvatarDB::load(), BadgesDB::load(), CharDB::load(), ClanDb::load(), ColorDB::load(), CommandsDB::load(), DeadDB::load(), ElementalDb::load(), EmoteDB::load(), GroupDb::load(), HomunculusDB::load(), HorseDB::load(), ItemDB::load(), ItemFieldDb::load(), ItemOptionDb::load(), LanguageDb::load(), MapDB::load(), MercenaryDB::load(), ModDB::load(), MonsterDB::load(), NetworkDb::load(), NPCDB::load(), NpcDialogDB::load(), PaletteDB::load(), PETDB::load(), QuestDb::load(), SkillUnitDb::load(), SoundDB::load(), StatDb::load(), StatusEffectDB::load(), TextDb::load(), UnitsDb::load(), WeaponsDB::load(), Theme::load(), PoParser::load(), anonymous_namespace{musicloader.cpp}::ResourceLoader::load(), ImageHelper::load(), SafeOpenGLImageHelper::load(), Theme::loadColors(), Client::loadData(), VirtFs::FsDir::loadFile(), VirtFs::FsZip::loadFile(), Font::loadFont(), ColorDB::loadHair(), loadHostsGroup(), AtlasManager::loadImages(), Theme::loadInfo(), TranslationManager::loadLang(), UpdaterWindow::loadLocalUpdates(), UpdaterWindow::loadNews(), PaletteDB::loadPalette(), UpdaterWindow::loadPatch(), ImageHelper::loadPng(), loadQuest(), ServerDialog::loadServers(), EmoteDB::loadSpecialXmlFile(), VirtFs::loadTextFile(), VirtFs::loadTextFileString(), loadTxtFile(), loadUnit(), UpdaterWindow::loadUpdates(), loadXMLFile(), EffectManager::loadXmlFile(), SkillDialog::loadXmlFile(), AvatarDB::loadXmlFile(), ClanDb::loadXmlFile(), CommandsDB::loadXmlFile(), DeadDB::loadXmlFile(), ElementalDb::loadXmlFile(), EmoteDB::loadXmlFile(), GroupDb::loadXmlFile(), HomunculusDB::loadXmlFile(), HorseDB::loadXmlFile(), ItemFieldDb::loadXmlFile(), ItemOptionDb::loadXmlFile(), MercenaryDB::loadXmlFile(), ModDB::loadXmlFile(), MonsterDB::loadXmlFile(), NPCDB::loadXmlFile(), PETDB::loadXmlFile(), SkillUnitDb::loadXmlFile(), StatDb::loadXmlFile(), StatusEffectDB::loadXmlFile(), UnitsDb::loadXmlFile(), ItemDB::loadXmlFile(), LocalPlayer::LocalPlayer(), Mutex::lock(), GraphicsManager::logError(), EventsManager::logEvent(), ServerDialog::logic(), UpdaterWindow::logic(), Joystick::logic(), Ea::LoginHandler::loginOrRegister(), ResourceManager::logResource(), ResourceManager::logResources(), GraphicsManager::logString(), Client::logVars(), GraphicsManager::logVersion(), main(), VirtFs::mountDirInternal(), VirtFs::mountDirSilent(), VirtFs::mountDirSilent2(), VirtFs::mountZip(), VirtFs::mountZip2(), Joystick::open(), TcpNet::open(), Font::openFont(), ParticleEmitter::ParticleEmitter(), SoundManager::playGuiSfx(), SoundManager::playSfx(), Popup::Popup(), ServerDialog::postInit(), MobileOpenGL2Graphics::postInit(), ModernOpenGLGraphics::postInit(), Gui::postInit(), Theme::prepareThemePath(), MemoryManager::printAllMemory(), Cpu::printFlags(), MemoryManager::printMemory(), Ea::BeingRecv::processBeingMove3(), EAthena::CashShopRecv::processCashShopSchedule(), EAthena::CashShopRecv::processCashShopTabPriceList(), EAthena::CharServerRecv::processCharCharacters(), EAthena::CharServerRecv::processCharLogin(), TmwAthena::CharServerRecv::processCharLogin(), EAthena::GeneralRecv::processConnectionProblem(), TmwAthena::GeneralRecv::processConnectionProblem(), EAthena::GuildRecv::processGuildMemberList(), EAthena::GuildRecv::processGuildPosNameList(), EAthena::LoginRecv::processLoginData(), TmwAthena::LoginRecv::processLoginData(), Ea::LoginRecv::processLoginError(), EAthena::LoginRecv::processLoginError2(), EAthena::MailRecv::processMailList(), EAthena::GameRecv::processMapLogin(), TmwAthena::GameRecv::processMapLogin(), EAthena::PartyRecv::processPartyInfo(), TmwAthena::PartyRecv::processPartyInfo(), TmwAthena::InventoryRecv::processPlayerEquipment(), TmwAthena::InventoryRecv::processPlayerInventory(), TmwAthena::InventoryRecv::processPlayerStorage(), TmwAthena::InventoryRecv::processPlayerStorageEquip(), Ea::PlayerRecv::processPlayerWarp(), EAthena::MailRecv::processReadMail(), EAthena::LoginRecv::processServerVersion(), TmwAthena::LoginRecv::processServerVersion(), EAthena::SkillRecv::processSkillFailed(), TmwAthena::SkillRecv::processSkillFailed(), TmwAthena::TradeRecv::processTradeItemAddResponse(), Ea::LoginRecv::processUpdateHost(), EAthena::LoginRecv::processUpdateHost2(), MStack< T >::push(), VirtFs::ZipReader::readArchiveInfo(), MapDB::readAtlas(), Net::MessageIn::readBytes(), readColor(), Net::MessageIn::readCoordinatePair(), Net::MessageIn::readCoordinates(), MapReader::readLayer(), BeingCommon::readObjectNodes(), Theme::readSkin(), MapReader::readTileset(), readXmlIntMap(), readXmlIntVector(), readXmlStringMap(), Ea::Network::realConnect(), Ea::Network::receive(), Map::reduce(), EAthena::Network::registerFakeHandlers(), Configuration::reInit(), Configuration::removeOldKeys(), VirtFs::FsDir::rwops_seek(), VirtFs::FsZip::rwops_seek(), Map::saveExtraLayer(), Game::saveScreenshot(), Perf::selectWorstFrame(), Being::setAction(), Desktop::setBestFittingWallpaper(), setBrandingDefaults(), CharSelectDialog::setCharacter(), setConfigDefaults(), setConfigDefaults2(), setEnv(), Ea::Network::setError(), setFeaturesDefaults(), GraphicsManager::setGLVersion(), WindowManager::setIcon(), ComplexInventory::setItem(), Graphics::setMainFlags(), Graphics::setOpenGLMode(), setPathsDefaults(), Graphics::setScale(), NpcDialog::setSkin(), BeingInfo::setTargetCursorSize(), ParticleEngine::setupEngine(), Gui::setUseCustomCursor(), GraphicsManager::setVideoMode(), Gui::slowLogic(), WhoIsOnline::slowLogic(), Net::Download::start(), IPC::start(), IPC::stop(), ConfigManager::storeSafeParameters(), SubImage::SubImage(), SoundManager::testAudio(), TranslationManager::translateFile(), AvatarDB::unload(), BadgesDB::unload(), CharDB::unload(), ClanDb::unload(), ColorDB::unload(), CommandsDB::unload(), DeadDB::unload(), ElementalDb::unload(), EmoteDB::unload(), GroupDb::unload(), HomunculusDB::unload(), HorseDB::unload(), ItemDB::unload(), ItemFieldDb::unload(), ItemOptionDb::unload(), LanguageDb::unload(), MapDB::unload(), MercenaryDB::unload(), ModDB::unload(), MonsterDB::unload(), NetworkDb::unload(), NPCDB::unload(), NpcDialogDB::unload(), PaletteDB::unload(), PETDB::unload(), QuestDb::unload(), SkillUnitDb::unload(), SoundDB::unload(), StatDb::unload(), StatusEffectDB::unload(), TextDb::unload(), UnitsDb::unload(), WeaponsDB::unload(), Mutex::unlock(), VirtFs::unmountDirInternal(), VirtFs::unmountDirSilent(), VirtFs::unmountDirSilent2(), VirtFs::unmountZip(), VirtFs::unmountZip2(), GraphicsManager::updateDebugLog(), GraphicsManager::updateExtensions(), GraphicsManager::updateLimits(), Graphics::updateMemoryInfo(), GraphicsManager::updatePlanformExtensions(), EAthena::updateProtocol(), GraphicsManager::updateTextureCompressionFormat(), GraphicsManager::updateTextureFormat(), useButton2FromItemType(), useButtonFromItemType(), Graphics::videoInfo(), Window::Window(), Configuration::write(), ConfigurationObject::writeToXML(), xmlErrorLogger(), ItemShortcut::~ItemShortcut(), LocalPlayer::~LocalPlayer(), Net::MessageIn::~MessageIn(), Popup::~Popup(), SubImage::~SubImage(), and Window::~Window().