hack/src/logger/logger.cpp

25 lines
594 B
C++
Raw Normal View History

2022-03-20 22:01:41 +03:00
#include "logger.hpp"
namespace hack
{
2022-03-23 22:02:17 +03:00
std::string log::devider_ = " ";
int log::count_ = 0;
2022-03-20 22:01:41 +03:00
2022-03-23 22:02:17 +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-23 22:02:17 +03:00
this->devider_ = devider;
2022-03-20 22:01:41 +03:00
}
2022-03-23 22:02:17 +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-23 22:02:17 +03:00
this->devider_ = devider;
2022-03-20 22:01:41 +03:00
}
2022-03-23 22:02:17 +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-23 22:02:17 +03:00
this->devider_ = devider;
2022-03-20 22:01:41 +03:00
}
void log::print() { std::cout << std::endl; }
}