Fixed CPlayer init, it was called too early.
nothing important on the logger
1 #ifndef _INCLUDE_SOURCEMOD_CLOGGER_H_
2 #define _INCLUDE_SOURCEMOD_CLOGGER_H_
5 #include "sourcemm_api.h"
8 #include "sm_version.h"
10 using namespace SourceHook;
28 CLogger() : m_PrntMapname(false), m_ErrMapStart(false), m_Active(false), m_DelayedStart(false), m_DailyPrintHdr(false) {}
30 void InitLogger(LoggingMode mode, bool startlogging);
33 void DisableLogging();
34 void LogMessage(const char *msg, ...);
35 void LogMessageEx(LogType type, const char *msg, ...);
36 void MapChange(const char *mapname);
37 const char *GetLogFileName(LogType type);
38 LoggingMode GetLoggingMode();
42 void _PrintToHL2Log(const char *fmt, ...);
56 extern CLogger g_Logger;
58 inline const char *CLogger::GetLogFileName(LogType type)
64 return m_NrmFileName.c_str();
68 return m_ErrFileName.c_str();
77 inline LoggingMode CLogger::GetLoggingMode()
82 inline void CLogger::EnableLogging()
89 LogMessage("Logging enabled manually by user.");
92 inline void CLogger::DisableLogging()
98 LogMessage("Logging disabled manually by user.");
102 #endif // _INCLUDE_SOURCEMOD_CLOGGER_H_