Core/Battle.net: Improved logging - use separate filters instead of throwing everything to one logger
This commit is contained in:
1 parent
c2a39ce36a
commit
7679ecd7b3
8 files changed
+66
-46
No files matched your search
@@ -128,11 +128,17 @@ void Battlenet::WoWRealm::ListUpdate::Write()
|
||||
std::string Battlenet::WoWRealm::ListUpdate::ToString() const
|
||||
{
|
||||
std::ostringstream stream;
|
||||
stream << "Battlenet::WoWRealm::ListUpdate Timezone " << Timezone << " Population " << Population << " Lock " << uint32(Lock) << " Type " << Type << " Name " << Name
|
||||
<< " Flags " << uint32(Flags) << " Region " << uint32(Id.Region) << " Battlegroup " << uint32(Id.Battlegroup) << " Index " << Id.Index;
|
||||
stream << "Battlenet::WoWRealm::ListUpdate";
|
||||
if (UpdateState == UPDATE)
|
||||
{
|
||||
stream << " Timezone: " << Timezone << " Population: " << Population << " Lock: " << uint32(Lock) << " Type: " << Type << " Name: " << Name
|
||||
<< " Flags: " << uint32(Flags) << " Region: " << uint32(Id.Region) << " Battlegroup: " << uint32(Id.Battlegroup) << " Index: " << Id.Index;
|
||||
|
||||
if (!Version.empty())
|
||||
stream << " Version " << Version;
|
||||
if (!Version.empty())
|
||||
stream << " Version: " << Version;
|
||||
}
|
||||
else
|
||||
stream << " Delete realm [Region: " << uint32(Id.Region) << " Battlegroup : " << uint32(Id.Battlegroup) << " Index : " << Id.Index << "]";
|
||||
|
||||
return stream.str().c_str();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user