From 2820f4d4329f29fc75c85d6b2195fd42b97fd457 Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Mon, 10 Dec 2007 02:50:15 +0000 Subject: Added an option to show log messages in the chat console. --- src/log.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/log.h') diff --git a/src/log.h b/src/log.h index 36328527..dd1c0f91 100644 --- a/src/log.h +++ b/src/log.h @@ -25,6 +25,8 @@ #include #include +class ChatWindow; + /** * The Log Class : Useful to write debug or info messages */ @@ -51,6 +53,11 @@ 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. */ @@ -65,6 +72,7 @@ class Logger private: std::ofstream mLogFile; bool mLogToStandardOut; + ChatWindow *mChatWindow; }; extern Logger *logger; -- cgit v1.2.3-70-g09d2