EvEmu  0.8.4
11 September 2021
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
logsys.h File Reference
#include <execinfo.h>
#include "logtypes.h"
Include dependency graph for logsys.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  LogTypeStatus
 

Macros

#define LOG_CATEGORY(category)   LOG_ ##category ,
 
#define LOG_TYPE(category, type, enabled, str)   category##__##type ,
 
#define is_log_enabled(type)   ( log_type_info[ ( type ) ].enabled )
 
#define _log(type, fmt,...)
 
#define codelog(type, fmt,...)
 
#define _hex(type, data, len)
 
#define phex(type, data, len)
 

Enumerations

enum  LogCategory { NUMBER_OF_LOG_CATEGORIES }
 
enum  LogType { NUMBER_OF_LOG_TYPES }
 

Functions

void log_enable (LogType t)
 
void log_disable (LogType t)
 
void log_toggle (LogType t)
 
bool log_open_logfile (const char *filename)
 
bool log_close_logfile ()
 
bool load_log_settings (const char *filename)
 
void log_message (LogType type, const char *fmt,...)
 
void log_messageVA (LogType type, const char *fmt, va_list args)
 
void log_messageVA (LogType type, uint32 iden, const char *fmt, va_list args)
 
void log_hex (LogType type, const void *data, unsigned long length, unsigned char padding=4)
 
void log_phex (LogType type, const void *data, unsigned long length, unsigned char padding=4)
 

Variables

const char * log_category_names [NUMBER_OF_LOG_CATEGORIES]
 
const LogTypeStatuslog_type_info
 

Macro Definition Documentation

#define _hex (   type,
  data,
  len 
)
Value:
if ( is_log_enabled( type ) ) \
log_hex( type, (const char*)data, len )
#define is_log_enabled(type)
Definition: logsys.h:78
void log_hex(LogType type, const void *data, unsigned long length, unsigned char padding=4)
Definition: logsys.cpp:51

Definition at line 133 of file logsys.h.

Referenced by Destiny::DumpBall(), and tcp_callback().

#define _log (   type,
  fmt,
  ... 
)
Value:
if ( is_log_enabled( type ) ) \
log_message( type, fmt, ##__VA_ARGS__ )
#define is_log_enabled(type)
Definition: logsys.h:78
void log_message(LogType type, const char *fmt,...)
Definition: logsys.cpp:72

Definition at line 124 of file logsys.h.

Referenced by PyService::_BuildCachedReturn(), ClientSession::_GetCurrent(), ItemFactory::_GetItem(), ClientSession::_GetLast(), EVEClientSession::_HandleCommand(), InventoryItem::_Load(), ObjCacheService::_LoadCachableObject(), ProbeItem::_LoadItem(), ModuleItem::_LoadItem(), StationOffice::_LoadItem(), AsteroidItem::_LoadItem(), StructureItem::_LoadItem(), CelestialObject::_LoadItem(), Skill::_LoadItem(), CargoContainer::_LoadItem(), StationItem::_LoadItem(), SolarSystem::_LoadItem(), Blueprint::_LoadItem(), ShipItem::_LoadItem(), WreckContainer::_LoadItem(), InventoryItem::_LoadItem(), Character::_LoadItem(), StationType::_LoadType(), BlueprintType::_LoadType(), CharacterType::_LoadType(), ItemType::_LoadType(), Client::_SendCallReturn(), Client::_VerifyFuncResult(), ActiveModule::AbortCycle(), CynoModule::Activate(), ActiveModule::Activate(), ModuleManager::Activate(), StructureSE::Activate(), ActiveModule::ActiveModule(), BubbleManager::Add(), SystemBubble::Add(), SystemBubble::AddBallExclusive(), SystemManager::AddBounty(), CertificateMgrDB::AddCertificate(), SystemManager::AddClient(), DungeonMgr::AddDecoToVector(), DungeonDataMgr::AddDungeon(), SystemManager::AddEntity(), PlanetMgr::AddExtractorHead(), Colony::AddExtractorHead(), Inventory::AddItem(), Character::AddItem(), SolarSystem::AddItemToInventory(), FleetService::AddMember(), ModuleManager::addModuleRef(), ShipItem::AddModuleToOnlineVec(), SystemManager::AddNPC(), MiningLaser::AddOreAndDeactivate(), PlanetDB::AddPlanetForChar(), AnomalyMgr::AddSignal(), SovereigntyDataMgr::AddSovClaim(), TargetManager::AddTargetModule(), Threading::AddThread(), Character::AddToSkillQueue(), CorporationDB::AddVoteCase(), Agent::Agent(), MarketDB::AlterOrderPrice(), MarketDB::AlterOrderQuantity(), InventoryItem::AlterQuantity(), ShipSE::ApplyBoost(), TurretModule::ApplyDamage(), SystemEntity::ApplyDamage(), FxProc::ApplyEffects(), MailDB::ApplyLabelMasks(), FactoryDB::AssemblyLinesGet(), FactoryDB::AssemblyLinesSelectAlliance(), FactoryDB::AssemblyLinesSelectCorporation(), FactoryDB::AssemblyLinesSelectPersonal(), FactoryDB::AssemblyLinesSelectPrivate(), FactoryDB::AssemblyLinesSelectPublic(), AsteroidItem::AsteroidItem(), SentryAI::Attack(), DroneAIMgr::Attack(), NPCAIMgr::Attack(), ConcordAI::Attack(), DestinyManager::AttemptDockOperation(), Character::balance(), DestinyManager::BeginMovement(), PyServiceMgr::BindObject(), Client::BoardShip(), SystemManager::BootSystem(), SystemBubble::BubblecastDestinyEvent(), SystemBubble::BubblecastDestinyUpdate(), SystemBubble::BubblecastDestinyUpdateExclusive(), SystemBubble::BubblecastSendNotification(), SystemManager::BuildDynamicEntity(), DynamicEntityFactory::BuildEntity(), Scan::CalcProbeAngles(), FxProc::CalculateAttributeValue(), PyBoundObject::Call(), PyService::Call(), PyCallable::Call(), MiningLaser::CanActivate(), ActiveModule::CanActivate(), CharacterDB::CancelCharacterDeletePrepare(), Character::CancelSkillInTraining(), TradeBound::CancelTrade(), Agent::CanUseAgent(), CargoContainer::CargoContainer(), CelestialObject::CelestialObject(), CelestialSE::CelestialSE(), CharacterDB::ChangeCloneLocation(), CharacterDB::ChangeCloneType(), InventoryItem::ChangeSingleton(), Client::CheckBallparkTimer(), BubbleManager::CheckBubble(), SentryAI::CheckDistance(), DroneAIMgr::CheckDistance(), NPCAIMgr::CheckDistance(), ConcordAI::CheckDistance(), Client::CheckShipRef(), Prospector::CheckSuccess(), ActiveModule::Clear(), TargetManager::ClearAllTargets(), PyServiceMgr::ClearBoundObject(), TargetManager::ClearFromTargets(), InventoryItem::ClearModifiers(), ShipItem::ClearModuleModifiers(), Character::ClearSkillQueue(), TargetManager::ClearTarget(), TargetManager::ClearTargets(), AnomalyMgr::Close(), PyServiceMgr::Close(), Colony::Colony(), DBResultRow::ColumnLength(), DBQueryResult::ColumnName(), DBQueryResult::ColumnType(), Command_giveskill(), FactoryDB::CompleteJob(), DestinyManager::ComputePosition(), Scan::ConeScan(), FactoryDB::CountManufacturingJobs(), FactoryDB::CountResearchJobs(), WormholeMgr::Create(), DungeonMgr::Create(), AnomalyMgr::CreateAnomaly(), EntityService::CreateBoundObject(), FleetObject::CreateBoundObject(), PosMgr::CreateBoundObject(), PlanetORB::CreateBoundObject(), AggressionMgrService::CreateBoundObject(), PlanetMgrService::CreateBoundObject(), RepairService::CreateBoundObject(), SkillMgrService::CreateBoundObject(), InvBrokerService::CreateBoundObject(), ReprocessingService::CreateBoundObject(), JumpCloneService::CreateBoundObject(), ShipService::CreateBoundObject(), AgentMgrService::CreateBoundObject(), KeeperService::CreateBoundObject(), TradeService::CreateBoundObject(), CharMgrService::CreateBoundObject(), PyService::CreateBoundObject(), CynoModule::CreateCyno(), WormholeMgr::CreateExit(), FleetService::CreateFleet(), FleetService::CreateFleetAdvert(), InventoryItem::CreateItemID(), PlanetMgr::CreateLink(), Colony::CreateLink(), MissionDataMgr::CreateMissionOffer(), NPCMarket::CreateNPCMarketFromFile(), PlanetMgr::CreatePin(), Colony::CreatePin(), PlanetMgr::CreateRoute(), Colony::CreateRoute(), Client::CreateShipSE(), FleetService::CreateSquad(), Threading::CreateThread(), FleetService::CreateWing(), CustomsSE::CustomsSE(), Damage::Damage(), ModuleManager::DamageModule(), ActiveModule::Deactivate(), ModuleManager::Deactivate(), ActiveModule::DeactivateCycle(), EVENotificationStream::Decode(), RefObject::DecRef(), ProbeItem::Delete(), AsteroidSE::Delete(), InventoryItem::Delete(), AttributeMap::DeleteAttribute(), FactoryDB::DeleteBlueprint(), ItemDB::DeleteItem(), LSCDB::DeleteMessage(), ModuleManager::deleteModuleRef(), Agent::DeleteOffer(), MarketDB::DeleteOrder(), ModuleManager::DeOverload(), MiningLaser::Depleted(), TargetManager::Destroyed(), Client::DestroyShipSE(), ShipItem::DissipateHeat(), FxAction::DoAction(), Client::DockToStation(), Prospector::DoCycle(), InventoryItem::Donate(), DBcore::DoQuery_locked(), SpawnMgr::DoSpawnForBubble(), SystemManager::DoSpawnForBubble(), DroneSE::DroneSE(), Prospector::DropSalvage(), PyAddress::Dump(), PyCallArgs::Dump(), PyPacket::Dump(), PyCallStream::Dump(), TargetManager::Dump(), EVENotificationStream::Dump(), TargetManager::TargetEntry::Dump(), TargetManager::TargetedByEntry::Dump(), Destiny::DumpBall(), Destiny::DumpUpdate(), Client::Eject(), Sentry::EncodeDestiny(), CustomsSE::EncodeDestiny(), Concord::EncodeDestiny(), Missile::EncodeDestiny(), NPC::EncodeDestiny(), DroneSE::EncodeDestiny(), AsteroidSE::EncodeDestiny(), StructureSE::EncodeDestiny(), AnomalySE::EncodeDestiny(), ContainerSE::EncodeDestiny(), WormholeSE::EncodeDestiny(), StationSE::EncodeDestiny(), SystemEntity::EncodeDestiny(), WreckSE::EncodeDestiny(), StaticSystemEntity::EncodeDestiny(), ShipSE::EncodeDestiny(), ItemSystemEntity::EncodeDestiny(), FieldSE::EncodeDestiny(), ObjectSystemEntity::EncodeDestiny(), DynamicSystemEntity::EncodeDestiny(), Threading::EndThreads(), DestinyManager::EntityRemoved(), TradeBound::ExchangeItems(), CommandDispatcher::Execute(), MarketMgr::ExecuteBuyOrder(), Client::ExecuteDriveJump(), Client::ExecuteJump(), MarketMgr::ExecuteSellOrder(), BubbleManager::FindBubble(), EntityList::FindOrBootSystem(), FleetService::FleetBroadcast(), DestinyManager::Follow(), ObjCacheDB::Generate_a_accessories(), ObjCacheDB::Generate_a_backgrounds(), ObjCacheDB::Generate_a_beards(), ObjCacheDB::Generate_a_costumes(), ObjCacheDB::Generate_a_decos(), ObjCacheDB::Generate_a_eyebrows(), ObjCacheDB::Generate_a_eyes(), ObjCacheDB::Generate_a_hairs(), ObjCacheDB::Generate_a_lights(), ObjCacheDB::Generate_a_lipsticks(), ObjCacheDB::Generate_a_makeups(), ObjCacheDB::Generate_a_skins(), ObjCacheDB::Generate_AllianceShortnames(), ObjCacheDB::Generate_BillTypes(), ObjCacheDB::Generate_bl_accessories(), ObjCacheDB::Generate_bl_backgrounds(), ObjCacheDB::Generate_bl_beards(), ObjCacheDB::Generate_bl_costumes(), ObjCacheDB::Generate_bl_decos(), ObjCacheDB::Generate_bl_eyebrows(), ObjCacheDB::Generate_bl_eyes(), ObjCacheDB::Generate_bl_hairs(), ObjCacheDB::Generate_bl_lights(), ObjCacheDB::Generate_bl_lipsticks(), ObjCacheDB::Generate_bl_makeups(), ObjCacheDB::Generate_bl_skins(), ObjCacheDB::Generate_BloodlineNames(), ObjCacheDB::Generate_c_chrAncestries(), ObjCacheDB::Generate_c_chrAttributes(), ObjCacheDB::Generate_c_chrBloodlines(), ObjCacheDB::Generate_c_chrRaces(), ObjCacheDB::Generate_c_chrSchools(), ObjCacheDB::Generate_cacheLocations(), ObjCacheDB::Generate_cacheOwners(), ObjCacheDB::Generate_certificateRelationships(), ObjCacheDB::Generate_certificates(), ObjCacheDB::Generate_CharNewExtraCareers(), ObjCacheDB::Generate_CharNewExtraCareerSkills(), ObjCacheDB::Generate_CharNewExtraRaceSkills(), ObjCacheDB::Generate_CharNewExtraSpecialities(), ObjCacheDB::Generate_CharNewExtraSpecialitySkills(), ObjCacheDB::Generate_chrAttributes(), ObjCacheDB::Generate_chrBloodlines(), ObjCacheDB::Generate_chrRaces(), ObjCacheDB::Generate_dgmAttribs(), ObjCacheDB::Generate_dgmEffects(), ObjCacheDB::Generate_dgmExpressions(), ObjCacheDB::Generate_dgmTypeAttribs(), ObjCacheDB::Generate_dgmTypeEffects(), ObjCacheDB::Generate_eveBulkDataUnits(), ObjCacheDB::Generate_eveGraphics(), ObjCacheDB::Generate_eveStaticLocations(), ObjCacheDB::Generate_eveStaticOwners(), ObjCacheDB::Generate_eveUnits(), ObjCacheDB::Generate_Icons(), ObjCacheDB::Generate_invBlueprintTypes(), ObjCacheDB::Generate_invCategories(), ObjCacheDB::Generate_invContrabandTypes(), ObjCacheDB::Generate_invFlags(), ObjCacheDB::Generate_invGroups(), ObjCacheDB::Generate_invMetaGroups(), ObjCacheDB::Generate_invMetaTypes(), ObjCacheDB::Generate_invShipTypes(), ObjCacheDB::Generate_Invtypematerials(), ObjCacheDB::Generate_invTypeReactions(), ObjCacheDB::Generate_invTypes(), ObjCacheDB::Generate_Locationscenes(), ObjCacheDB::Generate_locationWormholeClasses(), ObjCacheDB::Generate_mapCelestialDescriptions(), ObjCacheDB::Generate_OverviewDefaultGroups(), ObjCacheDB::Generate_OverviewDefaults(), ObjCacheDB::Generate_Ownericons(), ObjCacheDB::Generate_PaperdollColorNames(), ObjCacheDB::Generate_PaperdollColorRestrictions(), ObjCacheDB::Generate_PaperdollColors(), ObjCacheDB::Generate_PaperdollModifierLocations(), ObjCacheDB::Generate_PaperdollResources(), ObjCacheDB::Generate_PaperdollSculptingLocations(), ObjCacheDB::Generate_ramActivities(), ObjCacheDB::Generate_ramALTypeCategory(), ObjCacheDB::Generate_ramALTypeGroup(), ObjCacheDB::Generate_ramALTypes(), ObjCacheDB::Generate_ramCompletedStatuses(), ObjCacheDB::Generate_ramTypeRequirements(), ObjCacheDB::Generate_Schematics(), ObjCacheDB::Generate_Schematicspinmap(), ObjCacheDB::Generate_Schematicstypemap(), ObjCacheDB::Generate_Sounds(), ObjCacheDB::Generate_tickerNames(), ShipItem::GenerateHeat(), generic_createitem(), GenericModule::GenericModule(), CharacterDB::GetActiveCloneID(), CharacterDB::GetActiveCloneType(), ManagerDB::GetAgents(), StaticDataMgr::GetAgentSystemID(), SovereigntyDataMgr::GetAllianceBeacons(), SovereigntyDataMgr::GetAllianceSystems(), ManagerDB::GetAnomalyList(), ManagerDB::GetAnomalyPos(), FactoryDB::GetAssemblyLineProperties(), FactoryDB::GetAssemblyLineRestrictions(), CorporationDB::GetAssetInventory(), CorporationDB::GetAssetInventoryForLocation(), ManagerDB::GetAsteroidData(), BeltMgr::GetAsteroidType(), ManagerDB::GetBillTypes(), InventoryDB::GetBloodlineByCharacterType(), FactoryDB::GetBlueprint(), DBResultRow::GetBool(), StaticDataMgr::GetBpTypeData(), ObjCacheDB::GetCachableObject(), ObjCacheService::GetCacheHint(), Inventory::GetCapacity(), ManagerDB::GetCategoryData(), StaticDataMgr::GetCategoryName(), InventoryDB::GetCelestialObject(), LSCDB::GetChannelID(), LSCDB::GetChannelIDFromComparisonKey(), LSCDB::GetChannelInfo(), LSCDB::GetChannelInformation(), LSCDB::GetChannelName(), LSCDB::GetChannelNames(), LSCDB::GetChannelSubscriptions(), InventoryDB::GetCharacterData(), InventoryDB::GetCharacterType(), InventoryDB::GetCharacterTypeByBloodline(), CharacterDB::GetCharClones(), ShipItem::GetChargeState(), CharacterDB::GetCharHomeStation(), CharacterDB::GetCharItems(), CharacterDB::GetCharName(), CharacterDB::GetCharSelectInfo(), Colony::GetColony(), ServiceDB::GetConstant(), CorporationDB::GetContacts(), InventoryDB::GetCorpData(), CorporationDB::GetCorpData(), StaticDataMgr::GetCorpFaction(), ServiceDB::GetCorpHangarNames(), CorporationDB::GetCorpIDforChar(), StaticDataMgr::GetCorpName(), CorporationDB::GetCorpName(), Skill::GetCurrentSP(), CorporationDB::GetDivisionName(), BulkDB::GetDogmaAttribs(), BulkDB::GetDogmaEffects(), BulkDB::GetDogmaTypeAttribs(), BulkDB::GetDogmaTypeEffects(), DBResultRow::GetDouble(), ManagerDB::GetDunEntryData(), AnomalyMgr::GetDungeonType(), ManagerDB::GetDunGroupData(), ManagerDB::GetDunRoomData(), ManagerDB::GetDunRoomInfo(), ManagerDB::GetDunSpawnInfo(), DungeonDB::GetDunTemplates(), ManagerDB::GetDunTemplates(), ManagerDB::GetEntryTypes(), PlanetDB::GetExtractorsForPlanet(), ManagerDB::GetFactionGroups(), FactionWarMgrDB::GetFactionMilitiaCorporation(), FactionWarMgrDB::GetFacWarSystems(), DBResultRow::GetFloat(), ManagerDB::GetGroupData(), StaticDataMgr::GetGroupName(), ManagerDB::GetGroupTypeIDs(), PIDataMgr::GetHeadType(), Agent::GetInfoServiceDetails(), DBResultRow::GetInt(), DBResultRow::GetInt64(), Inventory::GetInvForOwner(), ItemDB::GetItem(), InventoryDB::GetItemContents(), FactoryDB::GetJobProperties(), FactoryDB::GetJobs2(), ManagerDB::GetKeyMap(), CharacterDB::GetKillOrLoss(), CorporationDB::GetKillsAndLosses(), PlanetDB::GetLaunchDetails(), PlanetDB::GetLaunchItemID(), PlanetDB::GetLaunchPlanet(), PlanetDB::GetLaunchPos(), ShipItem::GetLinkedWeapons(), LSCDB::GetMailDetails(), LSCDB::GetMailHeaders(), MarketDB::GetMarketGroups(), FactoryDB::GetMaterialCompositionOfItemType(), CorporationDB::GetMembersForQuery(), MapData::GetMissionDestination(), AgentBound::GetMissionObjectiveInfo(), CorporationDB::GetMktInfo(), FactoryDB::GetMultipliers(), PlanetDB::GetMyLaunchesDetails(), MarketMgr::GetNewPriceHistory(), LSCDB::GetNextAvailableChannelID(), FactoryDB::GetNextFreeTime(), TurretFormulas::GetNPCToHit(), Agent::GetOffer(), MarketMgr::GetOldPriceHistory(), ManagerDB::GetOperands(), MarketDB::GetOrderInfo(), MarketDB::GetOrders(), MarketDB::GetOrdersForOwner(), PaperDollDB::GetPaperDollAvatar(), PaperDollDB::GetPaperDollAvatarColors(), PaperDollDB::GetPaperDollAvatarModifiers(), PaperDollDB::GetPaperDollAvatarSculpts(), PaperDollDB::GetPaperDollPortraitData(), PlanetDB::GetPlanetData(), PlanetDB::GetPlanetsForChar(), Scan::GetProbeDataForSig(), PIDataMgr::GetProductLevel(), PIDataMgr::GetProductName(), PIDataMgr::GetProgramResultInfo(), CorpRegistryBound::GetQueryType(), ReprocessingServiceBound::GetQuote(), DungeonMgr::GetRandLevel(), StaticDataMgr::GetRandRatType(), ReprocessingDB::GetRecoverables(), ManagerDB::GetRegionFaction(), StaticDataMgr::GetRegionFaction(), ManagerDB::GetRegionRatFaction(), StaticDataMgr::GetRegionRatFaction(), PlanetSE::GetResourceData(), StaticDataMgr::GetRoidDist(), ManagerDB::GetSavedDungeons(), ScanningDB::GetScanResults(), PlanetDB::GetSchematicData(), PIDataMgr::GetSchematicData(), PlanetDB::GetSchematicTimes(), CorpRegistryBound::GetSearchValues(), ShipItem::GetShipDNA(), ShipItem::GetShipInfo(), ShipItem::GetShipState(), Scan::GetSignalData(), ManagerDB::GetSkillList(), StaticDataMgr::GetSkillName(), InventoryDB::GetSolarSystem(), SystemDB::GetSolarSystemPosition(), SystemManager::GetSpawnBubbles(), ManagerDB::GetSpawnClasses(), StaticDataMgr::GetStaticInfo(), StaticDataMgr::GetStationConstellation(), StaticDataMgr::GetStationCount(), StationDataMgr::GetStationData(), StationDataMgr::GetStationName(), StationDB::GetStationOfficeIDs(), StationDataMgr::GetStationPyData(), StaticDataMgr::GetStationRegion(), StaticDataMgr::GetStationSystem(), StationDataMgr::GetStationSystemID(), ManagerDB::GetSystemAnomalies(), StaticDataMgr::GetSystemData(), StaticDataMgr::GetSystemName(), SovereigntyDataMgr::GetSystemSovereignty(), TargetManager::GetTarget(), FactoryDB::GetTech2Blueprint(), DungeonDataMgr::GetTemplate(), TurretFormulas::GetToHit(), ManagerDB::GetTypeAttributes(), ManagerDB::GetTypeData(), StaticDataMgr::GetTypeName(), DBResultRow::GetUInt(), FactionWarMgrDB::GetWarFactions(), ManagerDB::GetWHSystemClass(), StaticDataMgr::GetWHSystemClass(), DestinyManager::Halt(), EVECollectDispatcher::Handle_AuthenticationReq(), EVECollectDispatcher::Handle_AuthenticationRsp(), AlertService::Handle_BeanCount(), AlertService::Handle_BeanDelivery(), EVECollectDispatcher::Handle_CallReq(), EVECollectDispatcher::Handle_CallRsp(), EVECollectDispatcher::Handle_ErrorResponse(), AlertService::Handle_GroupBeanDelivery(), PyService::Handle_MachoBindObject(), PyService::Handle_MachoResolveObject(), EVECollectDispatcher::Handle_Notify(), Client::Handle_Notify(), EVECollectDispatcher::Handle_Other(), AlertService::Handle_SendClientStackTraceAlert(), EVECollectDispatcher::Handle_SessionChange(), AccountService::HandleCorpTransaction(), Inventory::HasAvailableSpace(), SystemBubble::InBubble(), RefObject::IncRef(), SpawnMgr::Init(), AnomalyMgr::Init(), IHubSE::Init(), SBUSE::Init(), TCUSE::Init(), TowerSE::Init(), BeltMgr::Init(), CustomsSE::Init(), ReactorSE::Init(), DungeonMgr::Init(), StructureSE::Init(), CustomsSE::InitData(), ModuleManager::Initialize(), DestinyManager::InitWarp(), Character::InjectSkillIntoBrain(), AllianceDB::InsertApplication(), CorporationDB::InsertApplication(), ObjCacheService::InsertCacheHints(), FactoryDB::InstallJob(), PlanetMgr::InstallProgram(), Colony::InstallProgram(), InventoryItem::InventoryItem(), LSCDB::IsChannelIDAvailable(), LSCDB::IsChannelNameAvailable(), LSCDB::IsChannelSubscribedByThisChar(), SystemBubble::IsOverlap(), FactoryDB::IsRecyclable(), FactoryDB::IsRefinable(), DestinyManager::IsTurn(), ItemType::ItemType(), LSCChannel::JoinChannel(), Sentry::Killed(), CustomsSE::Killed(), NPC::Killed(), DroneSE::Killed(), StructureSE::Killed(), ShipSE::Killed(), Colony::KillExtractorHead(), Colony::LaunchCommodities(), ActiveModule::LaunchMissile(), LSCChannel::LeaveChannel(), ShipItem::LinkAllWeapons(), ShipItem::LinkWeaponLoop(), Agent::Load(), BeltMgr::Load(), AttributeMap::Load(), AgentDB::LoadAgentData(), CertificateMgrDB::LoadCertificates(), TurretModule::LoadCharge(), ActiveModule::LoadCharge(), ModuleManager::LoadCharge(), ShipItem::LoadCharge(), PlanetDB::LoadColony(), Inventory::LoadContents(), PlanetDB::LoadContents(), SystemManager::LoadCosmicMgrs(), ItemType::LoadEffects(), BeltSE::LoadExtras(), StargateSE::LoadExtras(), PlanetDB::LoadHeads(), PlanetDB::LoadLinks(), ManagerDB::LoadNPCCorpFactionData(), CharacterDB::LoadPausedSkillQueue(), Character::LoadPausedSkillQueue(), PlanetDB::LoadPins(), SystemDB::LoadPlayerDynamicEntities(), SystemManager::LoadPlayerDynamics(), PlanetDB::LoadRoutes(), CharacterDB::LoadSkillQueue(), Client::LoadStationHangar(), StationItem::LoadStationOffice(), SystemDB::LoadSystemDynamicEntities(), SystemManager::LoadSystemDynamics(), ManagerDB::LoadSystemRoids(), SystemDB::LoadSystemStaticEntities(), SystemManager::LoadSystemStatics(), ServiceDB::LookupChars(), ServiceDB::LookupCorporations(), ServiceDB::LookupCorporationTickers(), ServiceDB::LookupFactions(), ServiceDB::LookupKnownLocationsByGroup(), PyServiceMgr::LookupService(), ServiceDB::LookupStations(), LSCChannel::LSCChannel(), main(), BubbleManager::MakeBubble(), DungeonMgr::MakeDungeon(), SystemManager::MakeSetState(), TowerSE::MakeSlimItem(), CustomsSE::MakeSlimItem(), Missile::MakeSlimItem(), DroneSE::MakeSlimItem(), ProbeSE::MakeSlimItem(), StructureSE::MakeSlimItem(), AnomalySE::MakeSlimItem(), ContainerSE::MakeSlimItem(), WormholeSE::MakeSlimItem(), StationSE::MakeSlimItem(), SystemEntity::MakeSlimItem(), WreckSE::MakeSlimItem(), StaticSystemEntity::MakeSlimItem(), ShipSE::MakeSlimItem(), StargateSE::MakeSlimItem(), ItemSystemEntity::MakeSlimItem(), ObjectSystemEntity::MakeSlimItem(), DynamicSystemEntity::MakeSlimItem(), SpawnMgr::MakeSpawn(), SystemBubble::MarkBubble(), SovereigntyDataMgr::MarkContested(), SBUSE::MarkContested(), LSCDB::MarkMessageRead(), InventoryItem::Merge(), ShipItem::MergeModuleGroups(), MiningLaser::MiningLaser(), ModuleFactory(), ModuleItem::ModuleItem(), ModuleManager::ModuleRepair(), InventoryItem::Move(), PlanetMgr::MoveExtractorHead(), Colony::MoveExtractorHead(), Client::MoveItem(), InventoryBound::MoveItems(), ShipItem::MoveModuleSlot(), DestinyManager::MoveObject(), SpawnMgr::MoveSpawn(), Client::MoveToLocation(), AttributeMap::MultiplyAttribute(), NPC::NPC(), GenericModule::Offline(), ModuleManager::Offline(), GenericModule::Online(), ModuleManager::Online(), BaseTCPServer::Open(), DestinyManager::Orbit(), ModuleManager::Overload(), FxProc::ParseExpression(), XMLPacketGen::ParseInclude(), Character::PauseSkillQueue(), SystemManager::PayBounties(), ShipItem::PeelAndLink(), pfxHexDump(), pfxHexDumpPreview(), Colony::PlanetXfer(), EVEClientSession::PopPacket(), StaticDataMgr::Populate(), SpawnMgr::PrepSpawn(), StandingDB::PrimeCharStandings(), PlanetMgr::PrioritizeRoute(), Scan::ProbeScanResult(), ProbeSE::ProbeSE(), Threading::Process(), SentryAI::Process(), ActiveModule::Process(), SpawnMgr::Process(), DroneAIMgr::Process(), BubbleManager::Process(), NPCAIMgr::Process(), TargetManager::Process(), SystemEntity::Process(), StructureSE::Process(), TCPConnection::Process(), ShipSE::Process(), Client::ProcessClient(), MiningLaser::ProcessCycle(), Colony::ProcessECUs(), GenericModule::ProcessEffects(), ShipItem::ProcessEffects(), Character::ProcessEffects(), ClassDecodeGenerator::ProcessElementDef(), ClassDecodeGenerator::ProcessElementPtr(), ShipItem::ProcessHeat(), Colony::ProcessPlants(), Scan::ProcessScan(), ShipItem::ProcessShipEffects(), DestinyManager::ProcessState(), NPCMarket::ProcessStation(), ClassDecodeGenerator::ProcessStringInline(), ProbeSE::ProcessTic(), ClassDecodeGenerator::ProcessTokenInline(), SystemBubble::ProcessWander(), ClassDecodeGenerator::ProcessWStringInline(), PyCallable_Make_InnerDispatcher(), PyCallArgs::PyCallArgs(), DBcore::Reconnect(), ProbeSE::RecoverProbe(), TCPConnection::RecvData(), InventoryItem::Relocate(), BubbleManager::Remove(), SystemBubble::Remove(), SystemBubble::RemoveBall(), SystemBubble::RemoveBallExclusive(), SystemBubble::RemoveBalls(), ShipSE::RemoveBoost(), SystemManager::RemoveClient(), BubbleManager::RemoveEmpty(), SystemBubble::RemoveExclusive(), FleetService::RemoveFleetAdvert(), Inventory::RemoveItem(), WreckContainer::RemoveItem(), SolarSystem::RemoveItemFromInventory(), SystemManager::RemoveItemFromInventory(), MailDB::RemoveLabelMasks(), MailDB::RemoveLabels(), PlanetMgr::RemoveLink(), Colony::RemoveLink(), SystemManager::RemoveNPC(), Agent::RemoveOffer(), PlanetMgr::RemovePin(), Colony::RemovePin(), PlanetMgr::RemoveRoute(), Colony::RemoveRoute(), AnomalyMgr::RemoveSignal(), SovereigntyDataMgr::RemoveSovClaim(), SpawnMgr::RemoveSpawn(), SystemManager::RemoveSpawnBubble(), ActiveModule::RemoveTarget(), TargetManager::RemoveTarget(), TargetManager::RemoveTargetModule(), Threading::RemoveThread(), FleetService::RenameSquad(), FleetService::RenameWing(), GenericModule::Repair(), ModuleManager::RepairModule(), ShipItem::ReplaceCharges(), Scan::RequestScans(), Client::ResetAfterPopped(), InventoryItem::ResetAttributes(), ShipItem::ResetEffects(), Character::ResetModifiers(), SpawnMgr::ReSpawn(), BeltMgr::Save(), ManagerDB::SaveActiveDungeon(), ManagerDB::SaveAnomaly(), ItemDB::SaveAttributes(), Blueprint::SaveBlueprint(), PlanetDB::SaveCCLevel(), CertificateMgrDB::SaveCertificates(), Character::SaveCertificates(), Character::SaveCharacter(), PlanetDB::SaveCommandCenter(), PlanetDB::SaveContents(), Character::SaveFullCharacter(), PlanetDB::SaveHeads(), ItemDB::SaveItem(), ItemDB::SaveItems(), PlanetDB::SaveLaunch(), PlanetDB::SaveLinkLevel(), PlanetDB::SaveLinks(), CharacterDB::SavePausedSkillQueue(), PlanetDB::SavePinContents(), PlanetDB::SavePinLevel(), PlanetDB::SavePins(), ManagerDB::SaveRoid(), PlanetDB::SaveRoute(), PlanetDB::SaveRoutes(), ServiceDB::SaveServerStats(), AttributeMap::SaveShipState(), CharacterDB::SaveSkillHistory(), CharacterDB::SaveSkillQueue(), Character::SaveSkillQueue(), ManagerDB::SaveStatisticData(), ManagerDB::SaveSystemRoids(), ShipDB::SaveWeaponGroups(), SystemBubble::SendAddBalls(), SystemBubble::SendAddBalls2(), AttributeMap::SendChanges(), SystemEntity::SendDamageStateChanged(), DestinyManager::SendDestinyUpdate(), FleetService::SendFleetUpdate(), Client::SendInitialSessionStatus(), InventoryItem::SendItemChange(), LSCService::SendMail(), Client::SendNotification(), CynoModule::SendOnJumpBeaconChange(), Client::SendSessionChange(), DestinyManager::SendSetState(), ProbeSE::SendStateChange(), SystemManager::SendStaticBall(), CustomsSE::SetAnchor(), StructureSE::SetAnchor(), AttributeMap::SetAttribute(), Client::SetAutoPilot(), Client::SetBallPark(), Client::SetBallParkTimer(), ServiceDB::SetCharacterOnlineStatus(), NPCAIMgr::SetChasing(), Client::SetCloakTimer(), CharacterDB::SetCurrentPod(), CharacterDB::SetCurrentShip(), Client::SetDestiny(), SystemManager::SetDockCount(), SentryAI::SetEngaged(), DroneAIMgr::SetEngaged(), NPCAIMgr::SetEngaged(), NPCAIMgr::SetFleeing(), NPCAIMgr::SetFollowing(), SentryAI::SetIdle(), DroneAIMgr::SetIdle(), NPCAIMgr::SetIdle(), Client::SetInvulTimer(), DestinyManager::SetMaxVelocity(), IHubSE::SetOffline(), SBUSE::SetOffline(), JumpBridgeSE::SetOffline(), TCUSE::SetOffline(), SBUSE::SetOnline(), IHubSE::SetOnline(), JumpBridgeSE::SetOnline(), TCUSE::SetOnline(), ModuleItem::SetOnline(), InventoryItem::SetPosition(), DestinyManager::SetPosition(), Colony::SetProgramResults(), InventoryItem::SetQuantity(), Colony::SetSchematic(), ShipItem::SetShipArmor(), ShipItem::SetShipCapacitorLevel(), ShipItem::SetShipHull(), ShipItem::SetShipShield(), SentryAI::SetSignaling(), NPCAIMgr::SetSignaling(), DestinyManager::SetSpeedFraction(), FleetService::SetSquadBoostData(), Client::SetStateTimer(), ActiveModule::SetTimer(), Client::SetUncloakTimer(), NPCAIMgr::SetWander(), FleetService::SetWingBoostData(), ShipItem::ShipGetModuleList(), ShipItem::ShipItem(), ShipSE::ShipSE(), ActiveModule::ShowEffect(), Character::SkillQueueLoop(), SlashService::SlashCommand(), SolarSystem::SolarSystem(), Inventory::SortVector(), InventoryItem::Spawn(), Character::Spawn(), BeltMgr::SpawnAsteroid(), BeltMgr::SpawnBelt(), SpawnMgr::SpawnKilled(), Client::SpawnNewRookieShip(), DestinyManager::SpeedBoost(), InventoryItem::Split(), Client::StargateJump(), SpawnMgr::StartRatGroupTimer(), SpawnMgr::StartRatTimer(), TargetManager::StartTargeting(), StationItem::StationItem(), StationOffice::StationOffice(), ConsoleCommand::Status(), ModuleManager::StopModuleRepair(), LSCDB::StoreMail(), PyRep::StringContent(), StructureItem::StructureItem(), StructureSE::StructureSE(), SystemBubble::SystemBubble(), SystemEntity::SystemEntity(), SystemManager::SystemManager(), Scan::SystemScanStarted(), SentryAI::Target(), DroneAIMgr::Target(), NPCAIMgr::Target(), TargetManager::TargetAdded(), SentryAI::Targeted(), DroneAIMgr::Targeted(), NPCAIMgr::Targeted(), ConcordAI::Targeted(), TargetManager::TargetedAdd(), TargetManager::TargetedByLocked(), TargetManager::TargetedByLost(), TargetManager::TargetedLost(), SentryAI::TargetLost(), DroneAIMgr::TargetLost(), NPCAIMgr::TargetLost(), TargetManager::TargetLost(), ConcordAI::TargetLost(), TargetManager::TargetsCleared(), tcp_callback(), AccountService::TranserFunds(), Colony::TransferCommodities(), DestinyManager::Turn(), ModuleManager::UnfitModule(), ModuleManager::UninstallRig(), TurretModule::UnloadCharge(), MiningLaser::UnloadCharge(), ActiveModule::UnloadCharge(), ModuleManager::UnloadCharge(), ModuleManager::UnloadModule(), SystemManager::UnloadSystem(), Colony::Update(), AllianceDB::UpdateApplication(), CorporationDB::UpdateApplication(), FleetService::UpdateBoost(), CertificateMgrDB::UpdateCertificate(), LSCDB::UpdateChannelInfo(), CorporationDB::UpdateDivisionNames(), PlanetDB::UpdateECUPin(), FleetService::UpdateMember(), ModuleManager::UpdateModules(), PlanetMgr::UpdateNetwork(), Agent::UpdateOffer(), FleetService::UpdateOptions(), PlanetDB::UpdatePins(), PlanetDB::UpdatePinTimes(), PlanetDB::UpdatePlanetPins(), ProbeSE::UpdateProbe(), Character::UpdateSkillQueueEndTime(), Agent::UpdateStandings(), ManagerDB::UpdateStatisticHistory(), ConsoleCommand::UpdateStatus(), SovereigntyDataMgr::UpdateSystemBeaconID(), SovereigntyDataMgr::UpdateSystemHubID(), SovereigntyDataMgr::UpdateSystemJammerID(), CorporationDB::UpdateTitle(), DestinyManager::UpdateVelocity(), Colony::UpgradeCommandCenter(), Inventory::ValidateAddItem(), Inventory::ValidateIHubUpgrade(), ShipItem::ValidateItemSpecifics(), Skill::VerifyAttribs(), Skill::VerifySP(), DestinyManager::WarpAccel(), DestinyManager::WarpCruise(), DestinyManager::WarpDecel(), SpawnMgr::WarpOutSpawn(), DestinyManager::WarpStop(), DestinyManager::WarpTo(), DestinyManager::WarpUpdate(), WreckContainer::WreckContainer(), LSCChannel::~LSCChannel(), SystemManager::~SystemManager(), and TCPConnection::~TCPConnection().

#define codelog (   type,
  fmt,
  ... 
)
Value:
if ( is_log_enabled( type ) ) \
log_message( type, "%s(%s:%d): " fmt, __FUNCTION__, __FILE__, __LINE__, ##__VA_ARGS__ )
#define is_log_enabled(type)
Definition: logsys.h:78
void log_message(LogType type, const char *fmt,...)
Definition: logsys.cpp:72

Definition at line 128 of file logsys.h.

Referenced by PyObjectEx_Type1::_CreateHeader(), CorporationDB::AddCorporation(), AllianceDB::AddEmployment(), CharacterDB::AddEmployment(), ShipItem::AddItemByFlag(), CharacterDB::AddOwnerNote(), SovereigntyDB::AddSovereigntyData(), CorporationDB::AddVoteCase(), InventoryItem::AlterQuantity(), MailDB::ApplyLabelMask(), MailDB::ApplyLabelMasks(), MailDB::ApplyStatusMask(), MailDB::ApplyStatusMasks(), DestinyManager::AttemptDockOperation(), CargoContainer::CargoContainerGetInfo(), cmd_parse_eq_arg(), Command_unspawn(), AllianceDB::CreateAlliance(), AllianceDB::CreateAllianceChangePacket(), EntityService::CreateBoundObject(), WarRegistryService::CreateBoundObject(), PlanetORB::CreateBoundObject(), InvBrokerService::CreateBoundObject(), DogmaIMService::CreateBoundObject(), CorpStationMgr::CreateBoundObject(), TradeService::CreateBoundObject(), CharMgrService::CreateBoundObject(), CorporationDB::CreateCorporationChangePacket(), CorporationDB::CreateCorporationCreatePacket(), InventoryItem::CreateItemID(), MailDB::CreateLabel(), MailDB::CreateMailingList(), CorporationDB::CreateMemberAttributeUpdate(), MissionDB::CreateOfferID(), StationDB::CreateOffice(), InventoryItem::CreateTempItemID(), AllianceDB::DeclareExecutorSupport(), PyAddress::Decode(), PyPacket::Decode(), PyCallStream::Decode(), EVENotificationStream::Decode(), AllianceDB::DeleteApplication(), CorporationDB::DeleteApplication(), ItemDB::DeleteItem(), MailDB::DeleteLabel(), MailDB::DeleteMail(), AllianceDB::DeleteMember(), TargetManager::Depleted(), CharacterDB::DoesCorporationExist(), DBcore::DoQuery_locked(), CharacterDB::EditOwnerNote(), MailDB::EmptyTrash(), CorporationDB::Fetch(), ShipItem::FindAvailableModuleSlot(), MarketDB::FindBuyOrder(), MarketDB::FindSellOrder(), CommandDB::FullSkillList(), LiveUpdateDB::GenerateUpdates(), RamMethods::GetActivityName(), CorporationDB::GetAdGroupData(), CorporationDB::GetAdRegistryData(), CorporationDB::GetAdTypeData(), CorporationDB::GetAdvert(), ManagerDB::GetAgentLocation(), ManagerDB::GetAgents(), CorporationDB::GetAllCorpMedals(), TutorialDB::GetAllCriterias(), AllianceDB::GetAlliance(), PosMgrDB::GetAllianceJumpArrays(), AllianceDB::GetAllianceMembers(), CertificateMgrDB::GetAllShipCertificateRecommendations(), TutorialDB::GetAllTutorials(), AllianceDB::GetApplications(), CorporationDB::GetApplications(), CorporationDB::GetAssetInventory(), CorporationDB::GetAssetInventoryForLocation(), CommandDB::GetAttributeID(), CharacterDB::GetAttributesFromAncestry(), PosMgrDB::GetBaseData(), CharacterDB::GetBaseSkills(), ManagerDB::GetBillTypes(), InventoryDB::GetBloodlineByCharacterType(), FactoryDB::GetBlueprint(), FactoryDB::GetBlueprintType(), PosMgrDB::GetBridgeData(), AllianceDB::GetBulletins(), CorporationDB::GetBulletins(), CharacterDB::GetCareerBySchool(), TutorialDB::GetCategories(), ManagerDB::GetCategoryData(), InventoryDB::GetCelestialObject(), SystemDB::GetCelestialRadius(), ConfigDB::GetCelestialStatistic(), CertificateMgrDB::GetCertificateCategories(), CertificateMgrDB::GetCertificateClasses(), InventoryDB::GetCharacterData(), CharacterDB::GetCharacterList(), InventoryDB::GetCharacterType(), InventoryDB::GetCharacterTypeByBloodline(), Character::GetCharInfo(), CharacterDB::GetCharName(), CharacterDB::GetCharPrivateInfo(), CharacterDB::GetCharPublicInfo(), CharacterDB::GetCharPublicInfo3(), CharacterDB::GetCharSelectInfo(), CorporationDB::GetCloneTypeCostByID(), FactoryDB::GetCommodities(), FactoryDB::GetComponents(), FactoryDB::GetCompounds(), ServiceDB::GetConstant(), AllianceDB::GetContacts(), CorporationDB::GetContacts(), CharacterDB::GetContacts(), PosMgrDB::GetControlTowerFuelRequirements(), AccountDB::GetCorpBalance(), PosMgrDB::GetCorpControlTowers(), InventoryDB::GetCorpData(), CorporationDB::GetCorpData(), ServiceDB::GetCorpHangarNames(), CorporationDB::GetCorpIDforChar(), CorporationDB::GetCorpInfo(), PosMgrDB::GetCorpJumpArrays(), CorporationDB::GetCorpMedalData(), CorporationDB::GetCorpMemberCount(), CorporationDB::GetCorpMemberLimit(), CorporationDB::GetCorpName(), CorporationDB::GetCorporation(), CorporationDB::GetCorporationBills(), CharacterDB::GetCorporationBySchool(), CorporationDB::GetCorporationCEO(), CorporationDB::GetCorporations(), CorporationDB::GetCorpRoleGroups(), CorporationDB::GetCorpRoles(), CorporationDB::GetCorpStations(), CharacterDB::GetCorpTaxRate(), AllianceDB::GetCurrentApplicationInfo(), CorporationDB::GetCurrentApplicationInfo(), PosMgrDB::GetCustomsData(), FxDataMgr::GetDgmEffects(), FxDataMgr::GetDgmTypeEffects(), CorporationDB::GetDivisionName(), ConfigDB::GetDynamicCelestials(), AllianceDB::GetEmploymentRecord(), CorporationDB::GetEmploymentRecord(), ManagerDB::GetEntryTypes(), CalendarDB::GetEventDetails(), CalendarDB::GetEventList(), CorporationDB::GetEveOwners(), AllianceDB::GetExecutorID(), BulkDB::GetExpressions(), FxDataMgr::GetExpressions(), ManagerDB::GetGroupData(), CharacterDB::GetInfoWindowDataForChar(), ItemDB::GetItem(), InventoryDB::GetItemContents(), CorporationDB::GetItemEvents(), ItemDB::GetItems(), SystemDB::GetItemTypeRadius(), MailDB::GetJoinedMailingLists(), AccountDB::GetJournal(), ManagerDB::GetKeyMap(), CharacterDB::GetKillOrLoss(), CorporationDB::GetKillsAndLosses(), AllianceDB::GetLabels(), CorporationDB::GetLabels(), CharacterDB::GetLabels(), PosMgrDB::GetLinkableJumpArrays(), CharacterDB::GetLocationCorporationByCareer(), SystemDB::GetLootGroups(), SystemDB::GetLootGroupTypes(), LSCDB::GetMailDetails(), MailDB::GetMailingListMembers(), MailDB::GetMailStatus(), MarketDB::GetManufacturedItems(), ConfigDB::GetMap(), ConfigDB::GetMapConnections(), ConfigDB::GetMapLandmarks(), ConfigDB::GetMapObjects(), ConfigDB::GetMapOffices(), MarketDB::GetMarketGroups(), CorporationDB::GetMedalDetails(), CorporationDB::GetMedalsReceived(), CorporationDB::GetMedalsReceivedDetails(), CorporationDB::GetMember(), CorporationDB::GetMemberCount(), CorporationDB::GetMemberIDs(), CorporationDB::GetMembers(), AllianceDB::GetMembers(), CorporationDB::GetMembersForQuery(), CorporationDB::GetMembersPaged(), CorporationDB::GetMemberTrackingInfo(), CorporationDB::GetMemberTrackingInfoSimple(), FactoryDB::GetMinerals(), FactoryDB::GetMiscCommodities(), CorporationDB::GetMktInfo(), ManagerDB::GetMoonResouces(), ConfigDB::GetMultiAllianceShortNamesEx(), ConfigDB::GetMultiCorpTickerNamesEx(), ConfigDB::GetMultiGraphicsEx(), ConfigDB::GetMultiInvTypesEx(), ConfigDB::GetMultiLocationsEx(), ConfigDB::GetMultiOwnersEx(), ConfigDB::GetMultiStationEx(), AllianceDB::GetMyApplications(), CorporationDB::GetMyApplications(), CorporationDB::GetMyShares(), CharacterDB::GetNote(), ManagerDB::GetNPCDivisions(), SystemDB::GetObjectLocationID(), StationDB::GetOfficeCount(), StationDB::GetOfficeData(), StationDB::GetOffices(), BulkDB::GetOperands(), FxDataMgr::GetOperands(), ManagerDB::GetOperands(), MarketDB::GetOrderRow(), MarketDB::GetOrders(), MarketDB::GetOrdersForOwner(), ManagerDB::GetOreBySSC(), CharacterDB::GetOwnerNote(), CharacterDB::GetOwnerNoteLabels(), TutorialDB::GetPageCriterias(), TutorialDB::GetPages(), MapDB::GetPseudoSecurities(), FactoryDB::GetRAMMaterials(), FactoryDB::GetRAMRequirements(), AllianceDB::GetRankedAlliances(), CorporationDB::GetRecipientsOfMedal(), CorporationDB::GetRecruiters(), MarketDB::GetRegionBest(), FactoryDB::GetResources(), CalendarDB::GetResponsesForCharacter(), CalendarDB::GetResponsesToEvent(), CorporationDB::GetRoleHistroy(), FactoryDB::GetSalvage(), ManagerDB::GetSalvageGroups(), CorporationDB::GetSanctionedItems(), CorporationDB::GetShares(), CorporationDB::GetSharesForCorp(), PosMgrDB::GetSiloCapacityForType(), CharacterDB::GetSkillHistory(), CharacterDB::GetSkillLevel(), ManagerDB::GetSkillList(), CharacterDB::GetSkillsByCareer(), CharacterDB::GetSkillsByRace(), SystemDB::GetSolarSystem(), CommandDB::GetSolarSystem(), InventoryDB::GetSolarSystem(), SystemDB::GetSolarSystemPosition(), MapDB::GetSolSystemVisits(), SovereigntyDB::GetSovereigntyData(), SovereigntyDB::GetSovereigntyDataForSystem(), StandingDB::GetStandingTransactions(), CharacterDB::GetStartingStationByCareer(), ManagerDB::GetStaticData(), CommandDB::GetStation(), MarketDB::GetStationAsks(), StationDB::GetStationConstellation(), CorporationDB::GetStationCorporationCEO(), MapDB::GetStationCount(), StationDB::GetStationData(), MapDB::GetStationExtraInfo(), StationDB::GetStationOfficeData(), MapDB::GetStationOpServices(), ServiceDB::GetStationOwner(), CorporationDB::GetStationOwner(), StationDB::GetStationRegion(), CorporationDB::GetStations(), MapDB::GetStationServiceInfo(), ConfigDB::GetStationSolarSystemsByOwner(), StationDB::GetStationSystem(), ManagerDB::GetStatisticData(), MarketDB::GetSystemAsks(), ManagerDB::GetSystemData(), ConfigDB::GetTextsForGroup(), CorporationDB::GetTitles(), PosMgrDB::GetTowerData(), MarketDB::GetTransactions(), TutorialDB::GetTutorial(), TutorialDB::GetTutorialCriterias(), ManagerDB::GetTypeAttributes(), ManagerDB::GetTypeData(), ConfigDB::GetUnits(), MarketDB::GetUpdateTime(), CorporationDB::GetVoteItems(), CorporationDB::GetVoteOptions(), CorporationDB::GetVotes(), AccountDB::GetWalletDivisionsInfo(), SystemDB::GetWrecksToTypes(), PyService::Handle_MachoBindObject(), CorporationDB::HasShares(), AllianceDB::InsertApplication(), CorporationDB::InsertApplication(), ModuleManager::InstallRig(), CommandDB::ItemSearch(), CharacterDB::List(), SystemDB::ListFactions(), SystemDB::ListJumps(), ConfigDB::ListLanguages(), CharacterDB::ListStationBlueprintItems(), CorporationDB::ListStationCorps(), CharacterDB::ListStationItems(), CorporationDB::ListStationOwners(), CharacterDB::ListStations(), AgentDB::LoadAgentData(), AgentDB::LoadAgentSkills(), MissionDB::LoadClosedOffers(), ManagerDB::LoadCorpFactions(), MissionDB::LoadCourierData(), MapDB::LoadDynamicData(), ManagerDB::LoadFactionConstellations(), ManagerDB::LoadFactionRaces(), ManagerDB::LoadFactionRegions(), ManagerDB::LoadFactionSolarSystems(), ManagerDB::LoadFactionStationCounts(), ManagerDB::LoadFactionSystemCounts(), MissionDB::LoadMiningData(), MissionDB::LoadMissionBookMark(), MissionDB::LoadMissionData(), ManagerDB::LoadNPCCorpFactionData(), ManagerDB::LoadNPCCorpInfo(), StationDB::LoadOffices(), MissionDB::LoadOpenOffers(), SystemDB::LoadPlayerDynamicEntities(), SystemDB::LoadSystemDynamicEntities(), SystemDB::LoadSystemStaticEntities(), MailDB::MailingListGetSettings(), MailDB::MarkAllAsRead(), MailDB::MarkAllAsReadByLabel(), MailDB::MarkAllAsUnread(), MailDB::MarkAllAsUnreadByLabel(), MailDB::MoveAllFromTrash(), MailDB::MoveAllToTrash(), InventoryBound::MoveItems(), MailDB::MoveToTrash(), MailDB::MoveToTrashByLabel(), CharacterDB::NewCharacter(), ItemDB::NewItem(), NPCMarket::ProcessStation(), CorporationDB::PyHasShares(), MarketDB::RecordTransaction(), MailDB::RemoveLabelMask(), MailDB::RemoveLabelMasks(), MailDB::RemoveLabels(), SovereigntyDB::RemoveSovereigntyData(), MailDB::RemoveStatusMask(), MailDB::RemoveStatusMasks(), DBcore::RunQuery(), FactoryDB::SaveBlueprintData(), CharacterDB::SaveCharacter(), CharacterDB::SaveCorpData(), ItemDB::SaveItem(), CalendarDB::SaveNewEvent(), MailDB::SendMail(), Client::SendSessionChange(), ServiceDB::SetAccountBanStatus(), ServiceDB::SetAccountOnlineStatus(), CharacterDB::SetAvatar(), CharacterDB::SetAvatarColors(), CharacterDB::SetAvatarModifiers(), CharacterDB::SetAvatarSculpts(), SovereigntyDB::SetBeaconID(), SovereigntyDB::SetContested(), SovereigntyDB::SetHubID(), SovereigntyDB::SetJammerID(), MailDB::SetMailingListDefaultAccess(), CharacterDB::SetNote(), CharacterDB::SetPortraitInfo(), InventoryItem::SetQuantity(), InventoryItem::Spawn(), InventoryItem::SpawnTemp(), TargetManager::StartTargeting(), StationOffice::StationOfficeGetInfo(), MarketDB::StoreOrder(), StructureItem::StructureGetInfo(), AllianceDB::UpdateAlliance(), AllianceDB::UpdateApplication(), CorporationDB::UpdateApplication(), AllianceDB::UpdateCorpAlliance(), CorporationDB::UpdateCorpHQ(), CorporationDB::UpdateCorporation(), CorporationDB::UpdateDivisionNames(), CorporationDB::UpdateLogo(), MissionDB::UpdateMissionOffer(), CorporationDB::UpdateTitle(), and WreckContainer::WreckContainerGetInfo().

#define is_log_enabled (   type)    ( log_type_info[ ( type ) ].enabled )

Definition at line 78 of file logsys.h.

Referenced by PyLogDumpVisitor::_dump(), ClientSession::_GetCurrent(), EVEClientSession::_HandleCommand(), PyLogDumpVisitor::_print(), Client::_SendCallReturn(), Client::_SendQueuedUpdates(), Client::_VerifyFuncResult(), SystemBubble::Add(), SystemBubble::AddBallExclusive(), SystemManager::AddMarker(), SystemEntity::ApplyDamage(), SystemBubble::BubblecastDestinyEvent(), SystemBubble::BubblecastDestinyUpdate(), PyCallable::Call(), Character::CancelSkillInTraining(), ModuleManager::CharacterBoardingShip(), PyServiceMgr::Close(), FleetObject::CreateBoundObject(), InventoryItem::CreateItemID(), NewLog::Debug(), DBcore::DoQuery_locked(), SystemManager::DoSpawnForBubble(), PyCallArgs::Dump(), TargetManager::Dump(), FleetService::FleetBroadcast(), AllianceDB::GetApplications(), CorporationDB::GetApplications(), Colony::GetColony(), AllianceDB::GetContacts(), CorporationDB::GetContacts(), PlanetSE::GetExtractorsForPlanet(), Agent::GetInfoServiceDetails(), ShipItem::GetLinkedWeapons(), MarketDB::GetMarketGroups(), AllianceDB::GetMembers(), AgentBound::GetMissionObjectiveInfo(), AllianceDB::GetMyApplications(), CorporationDB::GetMyApplications(), MarketMgr::GetNewPriceHistory(), MarketMgr::GetOldPriceHistory(), MarketDB::GetOrders(), PlanetSE::GetPlanetInfo(), PlanetSE::GetPlanetResourceInfo(), TowerSE::GetProcessInfo(), PIDataMgr::GetProgramResultInfo(), PlanetSE::GetResourceData(), ShipItem::GetShipInfo(), SystemManager::GetSpawnBubbles(), AccountDB::GetWalletDivisionsInfo(), DestinyManager::Halt(), EVECollectDispatcher::Handle_CallReq(), Client::Handle_CallReq(), EVECollectDispatcher::Handle_CallRsp(), EVECollectDispatcher::Handle_Notify(), EVECollectDispatcher::Handle_Other(), AlertService::Handle_SendClientStackTraceAlert(), AccountService::HandleCorpTransaction(), Inventory::HasAvailableSpace(), SystemBubble::InBubble(), EntityList::Initialize(), DestinyManager::InitWarp(), SystemBubble::IsOverlap(), DestinyManager::IsTurn(), Sentry::Killed(), CustomsSE::Killed(), NPC::Killed(), DroneSE::Killed(), StructureSE::Killed(), ShipSE::Killed(), Colony::LaunchCommodities(), ShipItem::LinkAllWeapons(), ShipItem::LinkWeaponLoop(), Inventory::List(), CharacterDB::ListStationBlueprintItems(), CharacterDB::ListStationItems(), CharacterDB::ListStations(), AttributeMap::Load(), SystemManager::MakeSetState(), TowerSE::MakeSlimItem(), CustomsSE::MakeSlimItem(), StructureSE::MakeSlimItem(), ContainerSE::MakeSlimItem(), WreckSE::MakeSlimItem(), ShipSE::MakeSlimItem(), DestinyManager::MoveObject(), DestinyManager::Orbit(), Colony::PlanetXfer(), EVEClientSession::PopPacket(), SpawnMgr::PrepSpawn(), ConsoleCommand::Process(), Colony::ProcessECUs(), Colony::ProcessPlants(), PyCallable_Make_InnerDispatcher(), Client::QueueDestinyUpdate(), SystemBubble::Remove(), SystemBubble::RemoveBall(), SystemBubble::RemoveBallExclusive(), SystemBubble::RemoveBalls(), SystemManager::RemoveSpawnBubble(), SystemBubble::SendAddBalls(), SystemBubble::SendAddBalls2(), AttributeMap::SendChanges(), DestinyManager::SendDestinyUpdate(), FleetService::SendFleetUpdate(), Client::SendInitialSessionStatus(), InventoryItem::SendItemChange(), Client::SendNotification(), Client::SendSessionChange(), DestinyManager::SendSetState(), SystemManager::SendStaticBall(), CustomsSE::SetAnchor(), StructureSE::SetAnchor(), AttributeMap::SetAttribute(), DestinyManager::SetMaxVelocity(), DestinyManager::SetSpeedFraction(), ModuleManager::ShipJumping(), ModuleManager::ShipWarping(), ActiveModule::ShowEffect(), Character::SkillQueueLoop(), DestinyManager::SpeedBoost(), SpawnMgr::StartRatGroupTimer(), SpawnMgr::StartRatTimer(), tcp_callback(), AccountService::TranserFunds(), DestinyManager::Turn(), Colony::Update(), ModuleManager::UpdateModules(), Character::UpdateSkillQueueEndTime(), Agent::UpdateStandings(), DestinyManager::UpdateVelocity(), Skill::VerifySP(), DestinyManager::WarpAccel(), DestinyManager::WarpCruise(), DestinyManager::WarpDecel(), DestinyManager::WarpStop(), DestinyManager::WarpTo(), DestinyManager::WarpUpdate(), and NewLog::White().

#define LOG_CATEGORY (   category)    LOG_ ##category ,

Definition at line 89 of file logsys.h.

#define LOG_TYPE (   category,
  type,
  enabled,
  str 
)    category##__##type ,

Definition at line 92 of file logsys.h.

#define phex (   type,
  data,
  len 
)
Value:
if ( is_log_enabled( type ) ) \
log_phex( type, (const char*)data, len )
#define is_log_enabled(type)
Definition: logsys.h:78
void log_phex(LogType type, const void *data, unsigned long length, unsigned char padding=4)
Definition: logsys.cpp:60

Definition at line 137 of file logsys.h.

Enumeration Type Documentation

Enumerator
NUMBER_OF_LOG_CATEGORIES 

Definition at line 52 of file logsys.h.

enum LogType
Enumerator
NUMBER_OF_LOG_TYPES 

Definition at line 59 of file logsys.h.

60 {
61  #include "logtypes.h"
63 };

Function Documentation

bool load_log_settings ( const char *  filename)

Definition at line 168 of file logsys.cpp.

References log_category_names, log_disable(), log_enable(), NUMBER_OF_LOG_CATEGORIES, NUMBER_OF_LOG_TYPES, and strcasecmp.

Referenced by main(), and ConsoleCommand::Process().

168  {
169  //this is a terrible algorithm, but im lazy today
170  FILE *f = fopen(filename, "r");
171  if (!f)
172  return false;
173  char linebuf[512], type_name[256], value[256];
174  uint16 i(0);
175  while(!feof(f)) {
176  ++i;
177  if (fgets(linebuf, 512, f) == nullptr)
178  continue;
179  if (sscanf(linebuf, "%[^=]=%[^\r\n]\n", type_name, value) != 2)
180  continue;
181 
182  if (type_name[0] == '\0' || type_name[0] == '#')
183  continue;
184 
185  //first make sure we understand the value
186  bool enabled;
187  if (!strcasecmp(value, "on") || !strcasecmp(value, "yes") || !strcasecmp(value, "enabled") || !strcmp(value, "1"))
188  enabled = true;
189  else if (!strcasecmp(value, "off") || !strcasecmp(value, "no") || !strcasecmp(value, "disabled") || !strcmp(value, "0"))
190  enabled = false;
191  else {
192  printf("Unable to parse value '%s' from %s around line %u. Skipping.\n", value, filename, i);
193  continue;
194  }
195 
196  int r;
197  //first see if it is a category name
198  for(r = 0; r < NUMBER_OF_LOG_CATEGORIES; r++) {
199  if (!strcasecmp(log_category_names[r], type_name))
200  break;
201  }
202  if (r != NUMBER_OF_LOG_CATEGORIES) {
203  //matched a category.
204  int k;
205  for(k = 0; k < NUMBER_OF_LOG_TYPES; k++) {
206  if (log_type_info[k].category != r)
207  continue; //does not match this category.
208  if (enabled)
209  log_enable(LogType(k));
210  else
211  log_disable(LogType(k));
212  }
213  continue;
214  }
215 
216  for(r = 0; r < NUMBER_OF_LOG_TYPES; r++) {
217  if (!strcasecmp(log_type_info[r].name, type_name))
218  break;
219  }
220  if (r == NUMBER_OF_LOG_TYPES) {
221  printf("Unable to locate log type %s from file %s around line %u. Skipping.\n", type_name, filename, i);
222  continue;
223  }
224 
225  //got it all figured out, do something now...
226  if (enabled)
227  log_enable(LogType(r));
228  else
229  log_disable(LogType(r));
230  }
231  fclose(f);
232  return true;
233 }
const LogTypeStatus * log_type_info
Definition: logsys.cpp:49
void log_enable(LogType t)
Definition: logsys.cpp:134
void log_disable(LogType t)
Definition: logsys.cpp:139
LogType
Definition: logsys.h:59
unsigned __int16 uint16
Definition: eve-compat.h:48
const char * log_category_names[NUMBER_OF_LOG_CATEGORIES]
Definition: logsys.cpp:37
#define strcasecmp
Definition: eve-compat.h:262

Here is the call graph for this function:

Here is the caller graph for this function:

bool log_close_logfile ( )

Definition at line 160 of file logsys.cpp.

References logsys_log_file().

Referenced by CleanUp(), log_open_logfile(), and main().

161 {
162  MutexLock lock(mLogSys);
163  if (!logsys_log_file)
164  return true;
165  return ( 0 == fclose( logsys_log_file ) );
166 }
A lock for a Lockable object.
Definition: Lock.h:70
Mutex mLogSys
Definition: logsys.cpp:32
FILE * logsys_log_file(nullptr)

Here is the call graph for this function:

Here is the caller graph for this function:

void log_disable ( LogType  t)

Definition at line 139 of file logsys.cpp.

References LogTypeStatus::enabled.

Referenced by load_log_settings().

140 {
141  real_log_type_info[t].enabled = false;
142 }
static LogTypeStatus real_log_type_info[NUMBER_OF_LOG_TYPES+1]
Definition: logsys.cpp:43
bool enabled
Definition: logsys.h:69

Here is the caller graph for this function:

void log_enable ( LogType  t)

Definition at line 134 of file logsys.cpp.

References LogTypeStatus::enabled.

Referenced by load_log_settings().

135 {
136  real_log_type_info[t].enabled = true;
137 }
static LogTypeStatus real_log_type_info[NUMBER_OF_LOG_TYPES+1]
Definition: logsys.cpp:43
bool enabled
Definition: logsys.h:69

Here is the caller graph for this function:

void log_hex ( LogType  type,
const void *  data,
unsigned long  length,
unsigned char  padding = 4 
)

Definition at line 51 of file logsys.cpp.

References build_hex_line(), and log_message().

Referenced by log_phex().

51  {
52  char buffer[80];
53  uint32 offset;
54  for(offset=0;offset<length;offset+=16) {
55  build_hex_line((const uint8 *)data,length,offset,buffer,padding);
56  log_message(type, "%s", buffer); //%s is to prevent % escapes in the ascii
57  }
58 }
unsigned __int8 uint8
Definition: eve-compat.h:46
void build_hex_line(const uint8 *buffer, size_t length, size_t offset, char *ret, unsigned int padding)
Build a printable line suitable for hex dump.
Definition: utils_hex.cpp:33
unsigned __int32 uint32
Definition: eve-compat.h:50
void log_message(LogType type, const char *fmt,...)
Definition: logsys.cpp:72

Here is the call graph for this function:

Here is the caller graph for this function:

void log_message ( LogType  type,
const char *  fmt,
  ... 
)

Definition at line 72 of file logsys.cpp.

References args, and log_messageVA().

Referenced by log_hex(), and log_phex().

72  {
73  va_list args;
74  va_start(args, fmt);
75  log_messageVA(type, 0, fmt, args);
76  va_end(args);
77 }
* args
void log_messageVA(LogType type, const char *fmt, va_list args)
Definition: logsys.cpp:79

Here is the call graph for this function:

Here is the caller graph for this function:

void log_messageVA ( LogType  type,
const char *  fmt,
va_list  args 
)

Definition at line 79 of file logsys.cpp.

References log_messageVA().

Referenced by PyLogDumpVisitor::_print(), log_message(), and log_messageVA().

79  {
80 
81  log_messageVA(type, 0, fmt, args);
82 }
* args
void log_messageVA(LogType type, const char *fmt, va_list args)
Definition: logsys.cpp:79

Here is the call graph for this function:

Here is the caller graph for this function:

void log_messageVA ( LogType  type,
uint32  iden,
const char *  fmt,
va_list  args 
)

Definition at line 84 of file logsys.cpp.

References LogTypeStatus::display_name, localtime_r(), logsys_log_file(), snprintf, Lock< T >::Unlock(), and vsnprintf.

85 {
86  /* allocate enough room for a med message (changed from 4k to 1k) */
87  size_t log_msg_size = 0x400;
88  size_t log_msg_index = 0;
89  char* log_msg = (char*)malloc(log_msg_size);
90 
91  /* handle the time part.. cross platform */
92  tm t;
93  time_t tTime;
94  time(&tTime);
95  localtime_r( &tTime, &t );
96  int va_size = snprintf(&log_msg[log_msg_index], log_msg_size, "%02u:%02u:%02u [%s] ", t.tm_hour, t.tm_min, t.tm_sec, log_type_info[type].display_name );
97 
98  /* store the resulting size */
99  log_msg_size-=va_size;
100  log_msg_index+=va_size;
101 
102  /* add the required spaces */
103  for (uint32 i = 0; i < iden; i++)
104  log_msg[log_msg_index++] = ' ';
105 
106  /* make sure the resulting size is corrected */
107  log_msg_size-=iden;
108 
109  /* put in the rest of the va stuff */
110  va_size = vsnprintf(&log_msg[log_msg_index], log_msg_size, fmt, args);
111  log_msg_index+=va_size;
112 
113  /* make sure that there is a new line at the end */
114  log_msg[log_msg_index++] = '\n';
115  log_msg[log_msg_index++] = '\0';
116 
117  MutexLock lock(mLogSys);
118 
119  fputs(log_msg, stdout);
120 
121  //print into the logfile (if any)
122  if (logsys_log_file != nullptr) {
123  //fprintf(logsys_log_file, "%s\n", message.c_str());
124  fputs(log_msg, logsys_log_file);
125  //keep the logfile updated
126  fflush(logsys_log_file);
127  }
128 
129  lock.Unlock();
130 
131  free(log_msg);
132 }
#define vsnprintf
Definition: eve-compat.h:188
tm * localtime_r(const time_t *timep, tm *result)
Definition: eve-compat.cpp:184
A lock for a Lockable object.
Definition: Lock.h:70
* args
#define snprintf
Definition: eve-compat.h:184
const char * display_name
Definition: logsys.h:72
const LogTypeStatus * log_type_info
Definition: logsys.cpp:49
unsigned __int32 uint32
Definition: eve-compat.h:50
Mutex mLogSys
Definition: logsys.cpp:32
FILE * logsys_log_file(nullptr)

Here is the call graph for this function:

bool log_open_logfile ( const char *  filename)

Definition at line 149 of file logsys.cpp.

References log_close_logfile(), and logsys_log_file().

Referenced by main().

150 {
151  MutexLock lock(mLogSys);
152  if (logsys_log_file)
153  if (!log_close_logfile())
154  return false;
155 
156  logsys_log_file = fopen(filename, "w");
157  return ( nullptr != logsys_log_file);
158 }
A lock for a Lockable object.
Definition: Lock.h:70
Mutex mLogSys
Definition: logsys.cpp:32
FILE * logsys_log_file(nullptr)
bool log_close_logfile()
Definition: logsys.cpp:160

Here is the call graph for this function:

Here is the caller graph for this function:

void log_phex ( LogType  type,
const void *  data,
unsigned long  length,
unsigned char  padding = 4 
)

Definition at line 60 of file logsys.cpp.

References build_hex_line(), log_hex(), and log_message().

60  {
61  if (length <= 1024)
62  log_hex(type, data, length, padding);
63  else {
64  char buffer[80];
65  log_hex(type, data, 1024-32, padding);
66  log_message(type, " ... truncated ...");
67  build_hex_line((const uint8 *)data,length,length-16,buffer,padding);
68  log_message(type, "%s", buffer);
69  }
70 }
unsigned __int8 uint8
Definition: eve-compat.h:46
void build_hex_line(const uint8 *buffer, size_t length, size_t offset, char *ret, unsigned int padding)
Build a printable line suitable for hex dump.
Definition: utils_hex.cpp:33
void log_hex(LogType type, const void *data, unsigned long length, unsigned char padding)
Definition: logsys.cpp:51
void log_message(LogType type, const char *fmt,...)
Definition: logsys.cpp:72

Here is the call graph for this function:

void log_toggle ( LogType  t)

Definition at line 144 of file logsys.cpp.

References LogTypeStatus::enabled.

145 {
147 }
static LogTypeStatus real_log_type_info[NUMBER_OF_LOG_TYPES+1]
Definition: logsys.cpp:43
bool enabled
Definition: logsys.h:69

Variable Documentation

const char* log_category_names[NUMBER_OF_LOG_CATEGORIES]

Definition at line 37 of file logsys.cpp.

Referenced by load_log_settings().

const LogTypeStatus* log_type_info

Definition at line 49 of file logsys.cpp.