Added some comments
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user