|
gz-cpp-util 1.3
A c++20 library containing various utilities
|
Create info for a Log object. More...
#include <log.hpp>
Public Attributes | |
| std::string | logfile = "log.log" |
| Absolute or relative path to the logfile. | |
| bool | showLog = true |
| Wether to print the messages to stdout. | |
| bool | storeLog = true |
| Wether to save the messages to the logfile. | |
| std::string | prefix = "" |
| A prefix that comes between the timestamp and the message. ": " is automatically appended to the prefix. | |
| Color | prefixColor = RESET |
| The color of the prefix. | |
| bool | showTime = true |
| Wether to prepend a timestamp to the message. | |
| Color | timeColor = RESET |
| The color of the timestamp. | |
| bool | clearLogfileOnRestart = true |
| If true, clear the logfile when initializing the log. That means only the log of most recent run is stored. | |
| unsigned int | writeAfterLines = 100 |
| Actually write the log to the logfile after so many lines. Must be at least 1. | |
Create info for a Log object.