Fixed the logger.
This commit is contained in:
10
src/Log.cpp
10
src/Log.cpp
@@ -75,12 +75,12 @@ namespace ehs
|
||||
{
|
||||
}
|
||||
|
||||
Log::Log(LogType type, const std::initializer_list<Str_8> &tags, const UInt_64 code, Str_8 msg)
|
||||
: type(type), tags(tags.size()), code(code), msg((Str_8&&)msg)
|
||||
Log::Log(LogType type, const Str_8 &tags, const UInt_64 code, Str_8 msg)
|
||||
: type(type), code(code), msg((Str_8&&)msg)
|
||||
{
|
||||
UInt_64 i = 0;
|
||||
for (auto v = tags.begin(); v != tags.end(); ++v)
|
||||
this->tags[i++] = *v;
|
||||
const Vector<Str_8> tmpTags = tags.Split(", ");
|
||||
|
||||
this->tags = Array<Str_8>(&tmpTags[0], tmpTags.Size());
|
||||
}
|
||||
|
||||
Log::Log(LogType type, Array<Str_8> tags, const UInt_64 code, Str_8 msg)
|
||||
|
Reference in New Issue
Block a user