Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/ogre/Tools/3dsmaxExport/LEXIExporter/SharedUtilities/Sources/FileLogger.h @ 45

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

=…

File size: 1.4 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 __FILE_LOGGER__
27#define __FILE_LOGGER__
28
29class CFileLogger : public ILogReceiver
30{
31public:
32        CFileLogger(const char *pszFile, bool bLogTimes=true, ELogLevel eMinLevel=LOG_INFO);
33        ~CFileLogger(void);
34
35        // Called from the logsystem
36        void ReceiveLogMessage(SYSTEMTIME &LogTime, const char *pszTimeStr, int iMessageLevel, const char *pszMessage);
37
38private:       
39        bool                    m_bLogTimes;
40        HANDLE                  m_hFileHandle;
41        ELogLevel               m_eMinLevel;
42};
43
44#endif
Note: See TracBrowser for help on using the repository browser.