Class Options¶
Defined in File Options.hpp
Class Documentation¶
-
class Options¶
brief Options for setting up diagnostic logging
Public Functions
-
Options(std::string diagLogMask = "", std::string logFileDirectory = "diaglogs", std::string logFileName = "DiagLog", uint32_t logFileRotateCount = 20, bool logFileReplace = true)¶
Public Members
-
std::string DiagLogMask¶
Enables diag logging only on the specified area mask (DNN_RUNTIME=ON | OFF)
-
std::string LogFileDirectory¶
The path to the directory where log files will be written. The path may be relative or absolute. Relative paths are interpreted from the current working directory. Default value is “diaglogs”.
-
std::string LogFileName¶
The name used for log files. If this value is empty then BaseName will be used as the default file name. Default value is “DiagLog”.
-
uint32_t LogFileRotateCount¶
The maximum number of log files to create. If set to 0 no log rotation will be used and the log file name specified will be used each time, overwriting any existing log file that may exist. Default value is 20.
-
bool LogFileReplace¶
If the log file already exists, control whether it will be replaced (existing contents truncated), or appended. Default value is true.
-
Options(std::string diagLogMask = "", std::string logFileDirectory = "diaglogs", std::string logFileName = "DiagLog", uint32_t logFileRotateCount = 20, bool logFileReplace = true)¶