2002-05-01 19:14:55 +00:00
|
|
|
#pragma once
|
|
|
|
|
/*
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
Class: RageLog
|
|
|
|
|
|
|
|
|
|
Desc: Manages logging
|
|
|
|
|
|
2002-05-19 01:59:48 +00:00
|
|
|
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
2002-05-01 19:14:55 +00:00
|
|
|
Chris Danford
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class RageLog
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
RageLog();
|
|
|
|
|
~RageLog();
|
|
|
|
|
|
|
|
|
|
void WriteLine( LPCTSTR fmt, ...);
|
|
|
|
|
void WriteLineHr( HRESULT hr, LPCTSTR fmt, ...);
|
|
|
|
|
void Flush();
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
FILE* m_fileLog;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
extern RageLog* LOG; // global and accessable from anywhere in our program
|