25 lines
514 B
C++
25 lines
514 B
C++
#pragma once
|
|
|
|
#include "ILogFacility.hpp"
|
|
|
|
#include <chrono>
|
|
#include <format>
|
|
#include <ostream>
|
|
#include <string_view>
|
|
#include <string>
|
|
|
|
namespace ugly {
|
|
|
|
class TimestampLog: virtual public ILogFacility {
|
|
private:
|
|
std::ostream &mrOutputStream;
|
|
std::string mDescription;
|
|
std::chrono::high_resolution_clock::time_point mStart;
|
|
|
|
public:
|
|
TimestampLog(std::ostream &os, std::string_view description);
|
|
void vlog(std::string_view fmt, std::format_args args) override;
|
|
};
|
|
|
|
}
|