enhanced raw command to log complete messages, fix for shutdown

This commit is contained in:
john30
2017-04-22 17:43:13 +02:00
parent 4fdc9b2fce
commit 930ae49513
4 changed files with 73 additions and 20 deletions
+4 -2
View File
@@ -57,7 +57,7 @@ class RotateFile {
* @param enabled @p true to enable writing to the file, @p false to disable it.
* @return @p true when the state was changed, @p false otherwise.
*/
bool setEnabled(bool enabled = true);
bool setEnabled(bool enabled);
/**
* Return whether writing to the file is enabled.
@@ -70,8 +70,10 @@ class RotateFile {
* @param value the pointer to the bytes to write.
* @param size the number of bytes to write.
* @param received @a true on reception, @a false on sending (only relevant in text mode).
* @param bytes whether to log single bytes (only relevant in text mode).
*/
void write(unsigned char* value, unsigned int size, bool received = true);
void write(const unsigned char* value, const size_t size, const bool received = true,
const bool bytes = true);
private: