Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/ogre/Tools/3dsmaxExport/LEXIExporter/SharedUtilities/Sources/ConsoleLogger.h @ 11

Last change on this file since 11 was 6, checked in by anonymous, 18 years ago

=…

File size: 1.5 KB
Line 
1/*
2-----------------------------------------------------------------------------
3This source file is part of LEXIExporter
4
5Copyright 2006 NDS Limited
6
7Author(s):
8Lasse Tassing
9
10This program is free software; you can redistribute it and/or modify it under
11the terms of the GNU Lesser General Public License as published by the Free Software
12Foundation; either version 2 of the License, or (at your option) any later
13version.
14
15This program is distributed in the hope that it will be useful, but WITHOUT
16ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
18
19You should have received a copy of the GNU Lesser General Public License along with
20this program; if not, write to the Free Software Foundation, Inc., 59 Temple
21Place - Suite 330, Boston, MA 02111-1307, USA, or go to
22http://www.gnu.org/copyleft/lesser.txt.
23-----------------------------------------------------------------------------
24*/
25
26#ifndef __CONSOLE_LOGGER__
27#define __CONSOLE_LOGGER__
28
29class CConsoleLogger : public ILogReceiver
30{
31public:
32        CConsoleLogger(bool bLogTimes=false, ELogLevel eMinLevel=LOG_INFO);
33        ~CConsoleLogger(void);
34
35        // Set level color. Mostly used for custom logging levels.
36        void SetLevelColor(int iMessageLevel, WORD wColor);     
37
38        // Called from the logsystem
39        void ReceiveLogMessage(SYSTEMTIME &LogTime, const char *pszTimeStr, int iMessageLevel, const char *pszMessage);
40
41private:
42        bool                    m_bLogTimes;
43        WORD                    m_wColors[255];
44        HANDLE                  m_hConsoleHandle;
45        ELogLevel               m_eMinLevel;
46};
47
48#endif
Note: See TracBrowser for help on using the repository browser.