30 mStream.open(mFileName.c_str(), std::ios_base::out);
47 if (mStream.is_open())
53 if (mStream.is_open())
57 void FileLogListener::log(
const std::string& _section,
LogLevel _level,
const struct tm* _time,
const std::string& _message,
const char* _file,
int _line)
59 if (mStream.is_open())
61 const char* separator =
" | ";
62 mStream << std::setw(2) << std::setfill(
'0') << _time->tm_hour <<
":"
63 << std::setw(2) << std::setfill(
'0') << _time->tm_min <<
":"
64 << std::setw(2) << std::setfill(
'0') << _time->tm_sec << separator
65 << _section << separator << _level.
print() << separator
66 << _message << separator << _file << separator << _line << std::endl;