123456789101112131415161718192021222324252627282930313233343536373839 |
- #include <iostream>
- #include "test_logger.hpp"
- TestLogger test_logger;
- TestLogger& TestLogger::info() {
- *this << "[ INFO ] ";
- return *this;
- }
- TestLogger& TestLogger::trace() {
- *this << "[ TRACE ] ";
- return *this;
- }
- TestLogger& TestLogger::error() {
- *this << "[ ERROR ] ";
- return *this;
- }
- void TestLogger::reset() { this->m_log.str(""); };
- void TestLogger::print_log() { std::cerr << this->m_log.str(); }
|