Optimized forwards, now paused functions are stored in a temp list so we dont have to check if they're runnable on each function execution.
2 * ===============================================================
3 * SourceMod (C)2004-2007 AlliedModders LLC. All rights reserved.
4 * ===============================================================
6 * This file is not open source and may not be copied without explicit
7 * written permission of AlliedModders LLC. This file may not be redistributed
8 * in whole or significant part.
9 * For information, see LICENSE.txt or http://www.sourcemod.net/license.php
14 #ifndef _INCLUDE_SOURCEMOD_CLOGGER_H_
15 #define _INCLUDE_SOURCEMOD_CLOGGER_H_
17 #include <sh_string.h>
18 #include "sm_globals.h"
20 using namespace SourceHook;
35 class CLogger : public SMGlobalClass
38 CLogger() : m_ErrMapStart(false), m_Active(false), m_DelayedStart(false), m_DailyPrintHdr(false) {}
39 public: //SMGlobalClass
40 void OnSourceModStartup(bool late);
41 void OnSourceModAllShutdown();
43 void InitLogger(LoggingMode mode, bool startlogging);
46 void DisableLogging();
47 void LogMessage(const char *msg, ...);
48 void LogError(const char *msg, ...);
49 void MapChange(const char *mapname);
50 const char *GetLogFileName(LogType type) const;
51 LoggingMode GetLoggingMode() const;
55 void _PrintToHL2Log(const char *fmt, va_list ap);
68 extern CLogger g_Logger;
70 #endif // _INCLUDE_SOURCEMOD_CLOGGER_H_