summaryrefslogtreecommitdiff
path: root/src/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/log.h')
-rw-r--r--src/log.h15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/log.h b/src/log.h
index 50fca577..a508d171 100644
--- a/src/log.h
+++ b/src/log.h
@@ -19,22 +19,17 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef _LOG_H
-#define _LOG_H
+#ifndef LOG_H
+#define LOG_H
#include <fstream>
-class ChatWindow;
-
/**
* The Log Class : Useful to write debug or info messages
*/
class Logger
{
public:
- /**
- * Constructor.
- */
Logger();
/**
@@ -53,11 +48,6 @@ class Logger
void setLogToStandardOut(bool value) { mLogToStandardOut = value; }
/**
- * Enables logging to chat window
- */
- void setChatWindow(ChatWindow *window) { mChatWindow = window; }
-
- /**
* Enters a message in the log. The message will be timestamped.
*/
void log(const char *log_text, ...)
@@ -75,7 +65,6 @@ class Logger
private:
std::ofstream mLogFile;
bool mLogToStandardOut;
- ChatWindow *mChatWindow;
};
extern Logger *logger;