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

(642df39)

#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)

Definition at line 38 of file logger.h.

◆ DEBUGLOG2

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

Definition at line 41 of file logger.h.

◆ DEBUGLOGSTR

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

Definition at line 44 of file logger.h.

◆ IGNOREDEBUGLOG

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

Definition at line 47 of file logger.h.

◆ UNIMPLEMENTEDPACKET

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

Definition at line 55 of file logger.h.

◆ UNIMPLEMENTEDPACKETFIELD

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

Definition at line 58 of file logger.h.

◆ WRONGPACKETSIZE

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

Definition at line 61 of file logger.h.

Variable Documentation

◆ logger

Logger* logger

Definition at line 88 of file logger.cpp.

Referenced by IPC::acceptLoop(), ConnectionDialog::action(), ChangeEmailDialog::action(), ChangePasswordDialog::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(), SoundManager::close(), Joystick::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(), TmwAthena::Network::dispatchMessages(), EAthena::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(), TmwAthena::GeneralHandler::GeneralHandler(), EAthena::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(), Image::Image(), Resource::incRef(), SoundManager::info(), Perf::init(), IPC::init(), SoundManager::init(), Joystick::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(), LanguageDb::load(), PaletteDB::load(), SoundDB::load(), TextDb::load(), ItemFieldDb::load(), WeaponsDB::load(), ModDB::load(), StatDb::load(), BadgesDB::load(), DeadDB::load(), ItemOptionDb::load(), PETDB::load(), SkillUnitDb::load(), UnitsDb::load(), PoParser::load(), AvatarDB::load(), GroupDb::load(), QuestDb::load(), CharDB::load(), ClanDb::load(), MercenaryDB::load(), MonsterDB::load(), NPCDB::load(), CommandsDB::load(), ElementalDb::load(), HomunculusDB::load(), MapDB::load(), NetworkDb::load(), NpcDialogDB::load(), ColorDB::load(), HorseDB::load(), ItemDB::load(), EmoteDB::load(), anonymous_namespace{musicloader.cpp}::ResourceLoader::load(), StatusEffectDB::load(), ImageHelper::load(), SafeOpenGLImageHelper::load(), Theme::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(), ItemFieldDb::loadXmlFile(), StatDb::loadXmlFile(), DeadDB::loadXmlFile(), PETDB::loadXmlFile(), SkillUnitDb::loadXmlFile(), ModDB::loadXmlFile(), ItemOptionDb::loadXmlFile(), UnitsDb::loadXmlFile(), GroupDb::loadXmlFile(), AvatarDB::loadXmlFile(), ClanDb::loadXmlFile(), HorseDB::loadXmlFile(), MonsterDB::loadXmlFile(), MercenaryDB::loadXmlFile(), CommandsDB::loadXmlFile(), ElementalDb::loadXmlFile(), HomunculusDB::loadXmlFile(), EmoteDB::loadXmlFile(), ItemDB::loadXmlFile(), NPCDB::loadXmlFile(), EffectManager::loadXmlFile(), StatusEffectDB::loadXmlFile(), loadXMLFile(), SkillDialog::loadXmlFile(), LocalPlayer::LocalPlayer(), Mutex::lock(), GraphicsManager::logError(), EventsManager::logEvent(), ServerDialog::logic(), Joystick::logic(), UpdaterWindow::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(), TcpNet::open(), Joystick::open(), Font::openFont(), ParticleEmitter::ParticleEmitter(), SoundManager::playGuiSfx(), SoundManager::playSfx(), Popup::Popup(), MobileOpenGL2Graphics::postInit(), ModernOpenGLGraphics::postInit(), ServerDialog::postInit(), Gui::postInit(), Theme::prepareThemePath(), MemoryManager::printAllMemory(), Cpu::printFlags(), MemoryManager::printMemory(), Ea::BeingRecv::processBeingMove3(), EAthena::CashShopRecv::processCashShopSchedule(), EAthena::CashShopRecv::processCashShopTabPriceList(), EAthena::CharServerRecv::processCharCharacters(), TmwAthena::CharServerRecv::processCharLogin(), EAthena::CharServerRecv::processCharLogin(), EAthena::GeneralRecv::processConnectionProblem(), TmwAthena::GeneralRecv::processConnectionProblem(), EAthena::GuildRecv::processGuildMemberList(), EAthena::GuildRecv::processGuildPosNameList(), TmwAthena::LoginRecv::processLoginData(), EAthena::LoginRecv::processLoginData(), Ea::LoginRecv::processLoginError(), EAthena::LoginRecv::processLoginError2(), EAthena::MailRecv::processMailList(), TmwAthena::GameRecv::processMapLogin(), EAthena::GameRecv::processMapLogin(), TmwAthena::PartyRecv::processPartyInfo(), EAthena::PartyRecv::processPartyInfo(), TmwAthena::InventoryRecv::processPlayerEquipment(), TmwAthena::InventoryRecv::processPlayerInventory(), TmwAthena::InventoryRecv::processPlayerStorage(), TmwAthena::InventoryRecv::processPlayerStorageEquip(), Ea::PlayerRecv::processPlayerWarp(), EAthena::MailRecv::processReadMail(), TmwAthena::LoginRecv::processServerVersion(), EAthena::LoginRecv::processServerVersion(), TmwAthena::SkillRecv::processSkillFailed(), EAthena::SkillRecv::processSkillFailed(), TmwAthena::TradeRecv::processTradeItemAddResponse(), Ea::LoginRecv::processUpdateHost(), EAthena::LoginRecv::processUpdateHost2(), MStack< ClipRect >::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(), Image::setAlpha(), 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(), WhoIsOnline::slowLogic(), Gui::slowLogic(), IPC::start(), Net::Download::start(), IPC::stop(), ConfigManager::storeSafeParameters(), SubImage::SubImage(), SoundManager::testAudio(), TranslationManager::translateFile(), PaletteDB::unload(), ItemFieldDb::unload(), WeaponsDB::unload(), StatDb::unload(), ModDB::unload(), BadgesDB::unload(), SoundDB::unload(), LanguageDb::unload(), GroupDb::unload(), ItemOptionDb::unload(), AvatarDB::unload(), UnitsDb::unload(), TextDb::unload(), ClanDb::unload(), CommandsDB::unload(), ElementalDb::unload(), PETDB::unload(), NPCDB::unload(), SkillUnitDb::unload(), MonsterDB::unload(), MercenaryDB::unload(), HomunculusDB::unload(), ItemDB::unload(), QuestDb::unload(), DeadDB::unload(), CharDB::unload(), NetworkDb::unload(), HorseDB::unload(), NpcDialogDB::unload(), EmoteDB::unload(), MapDB::unload(), StatusEffectDB::unload(), ColorDB::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(), Image::~Image(), ItemShortcut::~ItemShortcut(), LocalPlayer::~LocalPlayer(), Net::MessageIn::~MessageIn(), Popup::~Popup(), SubImage::~SubImage(), and Window::~Window().

logger
Logger * logger
Definition: logger.cpp:88