ManaPlus
Macros | Variables
logger.cpp File Reference

(dc3c359)

#include "logger.h"
#include "settings.h"
#include "listeners/debugmessagelistener.h"
#include "utils/cast.h"
#include "utils/foreach.h"
#include "utils/stringutils.h"
#include <iostream>
#include <sys/time.h>
#include <sstream>
#include "debug.h"

Go to the source code of this file.

Macros

#define SPECIALLOG(x)
 
#define DSPECIALLOG(x)
 
#define DATESTREAM
 

Variables

Loggerlogger = 0
 

Macro Definition Documentation

◆ DATESTREAM

#define DATESTREAM
Value:
timeStr << "[" \
<< ((((tv.tv_sec / 60) / 60) % 24 < 10) ? "0" : "") \
<< CAST_S32(((tv.tv_sec / 60) / 60) % 24) \
<< ":" \
<< (((tv.tv_sec / 60) % 60 < 10) ? "0" : "") \
<< CAST_S32((tv.tv_sec / 60) % 60) \
<< ":" \
<< ((tv.tv_sec % 60 < 10) ? "0" : "") \
<< CAST_S32(tv.tv_sec % 60) \
<< "." \
<< (((tv.tv_usec / 10000) % 100) < 10 ? "0" : "") \
<< CAST_S32((tv.tv_usec / 10000) % 100) \
<< "] ";
#define CAST_S32
Definition: cast.h:29

Definition at line 80 of file logger.cpp.

Referenced by Logger::assertLog(), Logger::dlog(), Logger::dlog2(), Logger::log(), Logger::log1(), and Logger::log_r().

◆ DSPECIALLOG

#define DSPECIALLOG (   x)

Definition at line 74 of file logger.cpp.

Referenced by Logger::dlog(), and Logger::dlog2().

◆ SPECIALLOG

#define SPECIALLOG (   x)

Definition at line 73 of file logger.cpp.

Referenced by Logger::assertLog(), Logger::log(), Logger::log1(), and Logger::log_r().

Variable Documentation

◆ logger

Logger* logger = 0

Definition at line 95 of file logger.cpp.

Referenced by IPC::acceptLoop(), ConnectionDialog::action(), ChangeEmailDialog::action(), ChangePasswordDialog::action(), RegisterDialog::action(), anonymous_namespace{client.cpp}::LoginListener::action(), Map::addAnimation(), 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(), MobileOpenGLGraphics::clearScreen(), NormalOpenGLGraphics::clearScreen(), NullOpenGLGraphics::clearScreen(), SoundManager::close(), Joystick::close(), compareSDLVersions(), compareVersions(), Ea::Network::connect(), AtlasManager::convertAtlas(), AtlasManager::convertEmptyAtlas(), SDLInput::convertMouseButton(), SafeOpenGLImageHelper::convertSurface(), SafeOpenGLImageHelper::convertSurfaceNormalize(), VirtFs::create_rwops(), EAthena::BeingRecv::createBeing2(), MapReader::createEmptyMap(), ShadersManager::createProgram(), AtlasManager::createSDLAtlas(), ShadersManager::createShader(), GraphicsManager::createTextureSampler(), SDL::createThread(), debugCallback(), Resource::decRef(), ResourceManager::deleteInstance(), ResourceManager::deleteResourceManager(), destroyGuiWindows(), Cpu::detect(), GraphicsManager::detectGraphics(), GraphicsManager::detectPixelSize(), TmwAthena::Network::dispatchMessages(), EAthena::Network::dispatchMessages(), Font::doClean(), Actions::doSit(), Net::Download::downloadThread(), ServerDialog::downloadUpdate(), MobileOpenGL2Graphics::drawLineArrays(), ModernOpenGLGraphics::drawLineArrays(), dumpLibs(), dumpLinkedSdlVersion(), MobileOpenGL2Graphics::dumpSettings(), MobileOpenGLGraphics::dumpSettings(), ModernOpenGLGraphics::dumpSettings(), NormalOpenGLGraphics::dumpSettings(), dumpSizes(), Being::dumpSprites(), ImageHelper::dumpSurfaceFormat(), Dye::Dye(), DyePalette::DyePalette(), EffectManager::EffectManager(), SoundManager::fadeOutMusic(), Font::Font(), Net::MessageIn::fromServerDirection(), Game::Game(), Client::gameClear(), Client::gameExec(), Client::gameInit(), ImageSet::get(), ResourceManager::get(), SpriteDef::getAction(), SDL::getAllVideoModes(), Theme::getColor(), UserPalette::getColor(), ScrollArea::getImageByState(), Graphics::getMemoryUsage(), Theme::getProgressColor(), SafeOpenGLImageHelper::glLoad(), EventsManager::handleCommonEvents(), EventsManager::handleEvents(), PIS_dotdotdot::ignore(), PIS_blinkname::ignore(), Image::Image(), Resource::incRef(), SoundManager::info(), IPC::init(), SoundManager::init(), Joystick::init(), Configuration::init(), EggSelectionDialog::initButtons(), Dirs::initConfigDir(), Client::initConfigListeners(), ConfigManager::initConfiguration(), initDefaultThemePath(), GraphicsManager::initGraphics(), GettextHelper::initLang(), Dirs::initLocalDataDir(), GraphicsManager::initOpenGLFunctions(), Dirs::initRootDir(), Dirs::initScreenshotDir(), ConfigManager::initServerConfig(), Client::initSoundManager(), Dirs::initTempDir(), Client::initTradeFilter(), Dirs::initUpdatesDir(), Dirs::initUsersDir(), Dye::instantiate(), OpenGLImageHelper::invalidate(), SafeOpenGLImageHelper::invalidate(), itemTypeFromString(), LanguageDb::load(), PaletteDB::load(), SoundDB::load(), TextDb::load(), WeaponsDB::load(), ModDB::load(), StatDb::load(), BadgesDB::load(), ItemFieldDb::load(), GroupDb::load(), DeadDB::load(), ItemOptionDb::load(), PETDB::load(), SkillUnitDb::load(), UnitsDb::load(), PoParser::load(), AvatarDB::load(), QuestDb::load(), CharDB::load(), MercenaryDB::load(), MonsterDB::load(), NPCDB::load(), CommandsDB::load(), ElementalDb::load(), HomunculusDB::load(), ItemDB::load(), MapDB::load(), NetworkDb::load(), NpcDialogDB::load(), ColorDB::load(), HorseDB::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(), loadReplaceLayer(), ServerDialog::loadServers(), EmoteDB::loadSpecialXmlFile(), VirtFs::loadTextFile(), VirtFs::loadTextFileString(), loadTxtFile(), loadUnit(), UpdaterWindow::loadUpdates(), StatDb::loadXmlFile(), DeadDB::loadXmlFile(), ItemFieldDb::loadXmlFile(), PETDB::loadXmlFile(), SkillUnitDb::loadXmlFile(), GroupDb::loadXmlFile(), ModDB::loadXmlFile(), ItemOptionDb::loadXmlFile(), UnitsDb::loadXmlFile(), HorseDB::loadXmlFile(), AvatarDB::loadXmlFile(), MercenaryDB::loadXmlFile(), MonsterDB::loadXmlFile(), ElementalDb::loadXmlFile(), CommandsDB::loadXmlFile(), HomunculusDB::loadXmlFile(), ItemDB::loadXmlFile(), EmoteDB::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(), mainGui(), 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(), 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::removeListener(), Configuration::removeOldKeys(), VirtFs::FsDir::rwops_seek(), VirtFs::FsZip::rwops_seek(), Map::saveExtraLayer(), Game::saveScreenshot(), 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(), ActorSprite::setStatusEffectBlock(), BeingInfo::setTargetCursorSize(), ParticleEngine::setupEngine(), Gui::setUseCustomCursor(), GraphicsManager::setVideoMode(), WhoIsOnline::slowLogic(), Gui::slowLogic(), IPC::start(), Net::Download::start(), Client::stateSwitchLogin1(), IPC::stop(), ConfigManager::storeSafeParameters(), SubImage::SubImage(), SoundManager::testAudio(), TranslationManager::translateFile(), PaletteDB::unload(), WeaponsDB::unload(), ModDB::unload(), StatDb::unload(), BadgesDB::unload(), LanguageDb::unload(), ItemFieldDb::unload(), SoundDB::unload(), GroupDb::unload(), AvatarDB::unload(), UnitsDb::unload(), ItemOptionDb::unload(), TextDb::unload(), MercenaryDB::unload(), ElementalDb::unload(), PETDB::unload(), HomunculusDB::unload(), NPCDB::unload(), MonsterDB::unload(), CommandsDB::unload(), SkillUnitDb::unload(), ItemDB::unload(), CharDB::unload(), DeadDB::unload(), QuestDb::unload(), NetworkDb::unload(), HorseDB::unload(), NpcDialogDB::unload(), EmoteDB::unload(), MapDB::unload(), ColorDB::unload(), StatusEffectDB::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().