Added some comments

This commit is contained in:
2025-07-31 02:09:45 -04:00
parent 15220aa3b7
commit d36115c841
7 changed files with 73 additions and 4 deletions

View File

@@ -10,6 +10,9 @@
namespace ugly {
/**
* \brief Log that automatically annotates messages with time and name.
*/
class TimestampLog: virtual public ILogFacility {
private:
std::chrono::high_resolution_clock::time_point mStartTime;
@@ -17,6 +20,10 @@ private:
std::string mDescription;
public:
/**
* \param description Name of the log to appear in the messages.
* \param os Output stream.
*/
TimestampLog(std::string_view description, std::ostream &os);
void vlog(std::string_view fmt, std::format_args args) override;
};