f8/cpp/tglog.h
2018-11-17 15:42:09 +08:00

26 lines
574 B
C++

#pragma once
struct TGLogImpl;
class TGLog : public a8::Singleton<TGLog>
{
private:
TGLog() {};
friend class a8::Singleton<TGLog>;
public:
void Init();
void UnInit();
void SetProjectInfo(const std::string& project_name, bool is_poly_log);
void AddTrackLog(int game_id, const std::string& accountid, unsigned long ip_saddr,
int logclass1, int logclass2, a8::XObject* prop);
private:
void SaveToFileThreadProc();
private:
std::string project_name_;
bool is_poly_log_ = false;
TGLogImpl* impl_ = nullptr;
};