remove logging to file
added some doc
This commit is contained in:
@ -1,17 +1,13 @@
|
||||
//
|
||||
// Created by lukas on 05.05.19.
|
||||
//
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
class FileLogger {
|
||||
public:
|
||||
/**
|
||||
* log messages to logfile
|
||||
* @param text message
|
||||
*/
|
||||
void logToLogfile(std::string text);
|
||||
|
||||
/**
|
||||
* safe ip to temp file
|
||||
* @param ip ip address to save
|
||||
|
@ -12,5 +12,11 @@ public:
|
||||
void checkIPAdress(bool force);
|
||||
|
||||
IPRefresher();
|
||||
|
||||
/**
|
||||
* start the service in loop mode
|
||||
* every 5 minutes the ip is checked an refreshed (needed for .service)
|
||||
* @param loop true->loopmode on
|
||||
*/
|
||||
explicit IPRefresher(bool loop);
|
||||
};
|
||||
|
@ -13,7 +13,7 @@ public:
|
||||
static void warning(std::string message);
|
||||
static void error(std::string message);
|
||||
|
||||
static void log(std::string &message, int level);
|
||||
static void log(const std::string &message, int level);
|
||||
|
||||
static const int Debug;
|
||||
static const int Message;
|
||||
|
Reference in New Issue
Block a user