add logger

This commit is contained in:
Антон 2024-03-28 21:01:55 +03:00
parent de5c600092
commit 2514cdd2f1
2 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ void RunWorkers(unsigned n, const Fn& fn)
int main()
{
Logger::GetInstance().SetOutStream(cout);
Logger::GetInstance().Log("Qwerty"s, 2, 3, 14);
Logger::GetInstance().Log("Server started");
const unsigned num_threads = std::thread::hardware_concurrency();

View File

@ -53,7 +53,7 @@ class Logger
template<class First>
void LogImpl(First fst)
{
*stream_ptr_ << fst;
*stream_ptr_ << fst << '\n';
}
};
} // namespace http_server