Helper to map string to log priority

This commit is contained in:
James Turner
2020-06-26 10:31:16 +01:00
committed by Automatic Release Builder
parent a8c1bef0bf
commit 6738a3aa2b
2 changed files with 16 additions and 1 deletions
+5
View File
@@ -105,6 +105,11 @@ public:
sgDebugPriority get_log_priority() const;
/**
@brief convert a string value to a log prioirty.
throws std::invalid_argument if the string is not valid
*/
static sgDebugPriority priorityFromString(const std::string& s);
/**
* set developer mode on/off. In developer mode, SG_DEV_WARN messags
* are treated as warnings. In normal (non-developer) mode they are