|
|
@ -571,8 +571,8 @@ public:
|
|
|
|
{
|
|
|
|
{
|
|
|
|
LGS::TLogDefinition &logDef = _LogDefs[36];
|
|
|
|
LGS::TLogDefinition &logDef = _LogDefs[36];
|
|
|
|
|
|
|
|
|
|
|
|
logDef.setLogName("Item_EndBotChat");
|
|
|
|
logDef.setLogName("Item_SaleStoreSold");
|
|
|
|
logDef.setLogText("Bot chat ended. Check why this is causing item log");
|
|
|
|
logDef.setLogText("An item was sold through the store and money is received");
|
|
|
|
|
|
|
|
|
|
|
|
logDef.setContext(true);
|
|
|
|
logDef.setContext(true);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1005,6 +1005,29 @@ TLogContext_Item_CheckSaleStore::~TLogContext_Item_CheckSaleStore()
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const std::string TLogContext_Item_SaleStoreSold::_ContextName("Item_SaleStoreSold");
|
|
|
|
|
|
|
|
/// The constructor push a log context in the logger system
|
|
|
|
|
|
|
|
TLogContext_Item_SaleStoreSold::TLogContext_Item_SaleStoreSold(const NLMISC::CEntityId &charId)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (LGS::ILoggerServiceClient::isInitialized())
|
|
|
|
|
|
|
|
LGS::ILoggerServiceClient::getInstance()->pushLogContext(_ContextName);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// stack the context param in the context class object
|
|
|
|
|
|
|
|
ItemDesc.pushContextVar_charId(charId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// The destructor pop a context in the logger system
|
|
|
|
|
|
|
|
TLogContext_Item_SaleStoreSold::~TLogContext_Item_SaleStoreSold()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (LGS::ILoggerServiceClient::isInitialized())
|
|
|
|
|
|
|
|
LGS::ILoggerServiceClient::getInstance()->popLogContext(_ContextName);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// pop the context param in the context class object
|
|
|
|
|
|
|
|
ItemDesc.popContextVar_charId();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const std::string TLogContext_Item_ConsumeAmmo::_ContextName("Item_ConsumeAmmo");
|
|
|
|
const std::string TLogContext_Item_ConsumeAmmo::_ContextName("Item_ConsumeAmmo");
|
|
|
|
/// The constructor push a log context in the logger system
|
|
|
|
/// The constructor push a log context in the logger system
|
|
|
|
TLogContext_Item_ConsumeAmmo::TLogContext_Item_ConsumeAmmo(const NLMISC::CEntityId &charId)
|
|
|
|
TLogContext_Item_ConsumeAmmo::TLogContext_Item_ConsumeAmmo(const NLMISC::CEntityId &charId)
|
|
|
@ -1261,30 +1284,6 @@ TLogContext_Item_EnchantPhrase::~TLogContext_Item_EnchantPhrase()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const std::string TLogContext_Item_EndBotChat::_ContextName("Item_EndBotChat");
|
|
|
|
|
|
|
|
/// The constructor push a log context in the logger system
|
|
|
|
|
|
|
|
TLogContext_Item_EndBotChat::TLogContext_Item_EndBotChat(const NLMISC::CEntityId &charId)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (LGS::ILoggerServiceClient::isInitialized())
|
|
|
|
|
|
|
|
LGS::ILoggerServiceClient::getInstance()->pushLogContext(_ContextName);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// stack the context param in the context class object
|
|
|
|
|
|
|
|
ItemDesc.pushContextVar_charId(charId);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// The destructor pop a context in the logger system
|
|
|
|
|
|
|
|
TLogContext_Item_EndBotChat::~TLogContext_Item_EndBotChat()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (LGS::ILoggerServiceClient::isInitialized())
|
|
|
|
|
|
|
|
LGS::ILoggerServiceClient::getInstance()->popLogContext(_ContextName);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// pop the context param in the context class object
|
|
|
|
|
|
|
|
ItemDesc.popContextVar_charId();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// No context context. Use this to disable any contextual log underneath
|
|
|
|
/// No context context. Use this to disable any contextual log underneath
|
|
|
|
TLogNoContext_Item::TLogNoContext_Item()
|
|
|
|
TLogNoContext_Item::TLogNoContext_Item()
|
|
|
|
{
|
|
|
|
{
|
|
|
|