2019-08-01 19:19:02 +00:00
|
|
|
//
|
|
|
|
// Created by lukas on 05.05.19.
|
|
|
|
//
|
|
|
|
#pragma once
|
|
|
|
|
2019-08-02 20:44:42 +00:00
|
|
|
#include <string>
|
2019-08-01 19:19:02 +00:00
|
|
|
class Logger {
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* log messages to logfile
|
|
|
|
* @param text message
|
|
|
|
*/
|
|
|
|
void logToLogfile(std::string text);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* safe ip to temp file
|
|
|
|
* @param ip ip address to save
|
|
|
|
*/
|
|
|
|
void safeip(std::string ip);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* read ip from file
|
|
|
|
* @return read ip
|
|
|
|
*/
|
|
|
|
std::string readip();
|
|
|
|
|
|
|
|
};
|