2014-08-04 08:36:20 +00:00
|
|
|
// vim: set ts=4 sw=4 tw=99 noet:
|
|
|
|
//
|
|
|
|
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
|
|
|
|
// Copyright (C) The AMX Mod X Development Team.
|
|
|
|
//
|
|
|
|
// This software is licensed under the GNU General Public License, version 3 or higher.
|
|
|
|
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
|
|
|
|
// https://alliedmods.net/amxmodx-license
|
2004-07-08 16:02:21 +00:00
|
|
|
|
|
|
|
#ifndef __AMXXLOG_H__
|
|
|
|
#define __AMXXLOG_H__
|
|
|
|
|
|
|
|
class CLog
|
|
|
|
{
|
|
|
|
private:
|
2004-08-15 10:53:48 +00:00
|
|
|
String m_LogFile;
|
2004-07-08 16:02:21 +00:00
|
|
|
int m_LogType;
|
2006-04-13 16:29:01 +00:00
|
|
|
bool m_FoundError;
|
2006-09-10 04:52:43 +00:00
|
|
|
bool m_LoggedErrMap;
|
2004-07-08 16:02:21 +00:00
|
|
|
|
2004-08-15 10:53:48 +00:00
|
|
|
void GetLastFile(int &outMonth, int &outDay, String &outFilename);
|
|
|
|
void UseFile(const String &fileName);
|
2004-07-08 16:02:21 +00:00
|
|
|
public:
|
|
|
|
CLog();
|
|
|
|
~CLog();
|
2005-09-16 23:48:51 +00:00
|
|
|
|
2004-07-08 16:02:21 +00:00
|
|
|
void CreateNewFile();
|
|
|
|
void CloseFile();
|
|
|
|
void MapChange();
|
|
|
|
void Log(const char *fmt, ...);
|
2006-04-13 16:29:01 +00:00
|
|
|
void LogError(const char *fmt, ...);
|
2004-07-08 16:02:21 +00:00
|
|
|
};
|
|
|
|
|
2004-07-23 16:55:53 +00:00
|
|
|
#endif // __AMXXLOG_H__
|