mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
35 lines
810 B
C++
Executable File
35 lines
810 B
C++
Executable File
// 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
|
|
|
|
#ifndef __AMXXLOG_H__
|
|
#define __AMXXLOG_H__
|
|
|
|
class CLog
|
|
{
|
|
private:
|
|
String m_LogFile;
|
|
int m_LogType;
|
|
bool m_FoundError;
|
|
bool m_LoggedErrMap;
|
|
|
|
void GetLastFile(int &outMonth, int &outDay, String &outFilename);
|
|
void UseFile(const String &fileName);
|
|
public:
|
|
CLog();
|
|
~CLog();
|
|
|
|
void CreateNewFile();
|
|
void CloseFile();
|
|
void MapChange();
|
|
void Log(const char *fmt, ...);
|
|
void LogError(const char *fmt, ...);
|
|
};
|
|
|
|
#endif // __AMXXLOG_H__
|