~ubuntu-branches/ubuntu/trusty/manaplus/trusty

« back to all changes in this revision

Viewing changes to src/logger.h

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2013-11-18 15:19:44 UTC
  • mfrom: (1.1.14)
  • Revision ID: package-import@ubuntu.com-20131118151944-iyd93ut2rmxzp8gg
Tags: 1.3.11.10-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
        { mLogToStandardOut = value; }
67
67
 
68
68
        /**
69
 
         * Enables logging to chat window
70
 
         */
71
 
        void setChatWindow(ChatWindow *const window)
72
 
        { mChatWindow = window; }
73
 
 
74
 
        /**
75
69
         * Enters a message in the log. The message will be timestamped.
76
70
         */
77
71
        void log(const char *const log_text, ...)
94
88
         */
95
89
        void log(const std::string &str);
96
90
 
 
91
#ifdef ENABLEDEBUGLOG
97
92
        /**
98
93
         * Enters debug message in the log. The message will be timestamped.
99
94
         */
100
95
        void dlog(const std::string &str);
 
96
#endif
101
97
 
102
98
        void setDebugLog(const bool n)
103
99
        { mDebugLog = n; }
118
114
    private:
119
115
        std::ofstream mLogFile;
120
116
        bool mLogToStandardOut;
121
 
        ChatWindow *mChatWindow;
122
117
        bool mDebugLog;
123
118
};
124
119