2014-08-04 12:36:20 +04: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 20:02:21 +04:00
|
|
|
|
|
|
|
#ifndef __AMXXLOG_H__
|
|
|
|
#define __AMXXLOG_H__
|
|
|
|
|
|
|
|
class CLog
|
|
|
|
{
|
|
|
|
private:
|
2004-08-15 14:53:48 +04:00
|
|
|
String m_LogFile;
|
2004-07-08 20:02:21 +04:00
|
|
|
int m_LogType;
|
2006-04-13 20:29:01 +04:00
|
|
|
bool m_FoundError;
|
2006-09-10 08:52:43 +04:00
|
|
|
bool m_LoggedErrMap;
|
2004-07-08 20:02:21 +04:00
|
|
|
|
2004-08-15 14:53:48 +04:00
|
|
|
void GetLastFile(int &outMonth, int &outDay, String &outFilename);
|
|
|
|
void UseFile(const String &fileName);
|
2004-07-08 20:02:21 +04:00
|
|
|
public:
|
|
|
|
CLog();
|
|
|
|
~CLog();
|
2005-09-17 03:48:51 +04:00
|
|
|
|
2004-07-08 20:02:21 +04:00
|
|
|
void CreateNewFile();
|
|
|
|
void CloseFile();
|
|
|
|
void MapChange();
|
|
|
|
void Log(const char *fmt, ...);
|
2006-04-13 20:29:01 +04:00
|
|
|
void LogError(const char *fmt, ...);
|
2004-07-08 20:02:21 +04:00
|
|
|
};
|
|
|
|
|
2004-07-23 20:55:53 +04:00
|
|
|
#endif // __AMXXLOG_H__
|