added getLogFacilities() and getLogLevel(), do not manipulate input string in setLog* methods

This commit is contained in:
john30
2016-04-30 16:23:55 +02:00
parent 7af79dd461
commit 650b68b9a2
2 changed files with 51 additions and 10 deletions
+13
View File
@@ -50,6 +50,13 @@ enum LogLevel {
*/
bool setLogFacilities(const char* facilities);
/**
* Get the log facilities.
* @param buffer the buffer into which the facilities are written to (separated by comma, buffer needs to be at last 32 characters long).
* @return true on success, false on error.
*/
bool getLogFacilities(char* buffer);
/**
* Parse the log level from the string.
* @param level the level as string.
@@ -57,6 +64,12 @@ bool setLogFacilities(const char* facilities);
*/
bool setLogLevel(const char* level);
/**
* Get the log level.
* @return the level as string.
*/
const char* getLogLevel();
/**
* Set the log file to use.
* @param filename the name of the log file to use.