amxmodx/amxmodx/amxxlog.h

35 lines
810 B
C
Raw Normal View History

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:
String m_LogFile;
2004-07-08 16:02:21 +00:00
int m_LogType;
bool m_FoundError;
bool m_LoggedErrMap;
2004-07-08 16:02:21 +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, ...);
void LogError(const char *fmt, ...);
2004-07-08 16:02:21 +00:00
};
#endif // __AMXXLOG_H__