hack/src/logger/logger.cpp

25 lines
600 B
C++
Raw Normal View History

2022-03-20 22:01:41 +03:00
#include "logger.hpp"
namespace hack
{
2022-03-27 23:04:36 +03:00
std::string log::devider = " ";
int log::count = 0;
2022-03-20 22:01:41 +03:00
2022-03-27 22:52:32 +03:00
log::log(const std::string devider_, std::experimental::source_location location_) : location { location_ }
2022-03-20 22:01:41 +03:00
{
2022-03-27 23:04:36 +03:00
this->devider = devider_;
2022-03-20 22:01:41 +03:00
}
2022-03-27 22:52:32 +03:00
warn::warn(const std::string devider_, std::experimental::source_location location_) : location { location_ }
2022-03-20 22:01:41 +03:00
{
2022-03-27 23:04:36 +03:00
this->devider = devider_;
2022-03-20 22:01:41 +03:00
}
2022-03-27 22:52:32 +03:00
error::error(const std::string devider_, std::experimental::source_location location_) : location { location_ }
2022-03-20 22:01:41 +03:00
{
2022-03-27 23:04:36 +03:00
this->devider = devider_;
2022-03-20 22:01:41 +03:00
}
void log::print() { std::cout << std::endl; }
}