2022-05-22 16:36:03 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
class log_file final : public module
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void post_load() override;
|
|
|
|
|
2022-08-07 12:02:26 +02:00
|
|
|
static void com_log_print_message(const std::string& msg);
|
2023-01-27 14:21:54 +00:00
|
|
|
|
|
|
|
static void info(const std::string& msg);
|
2022-05-22 16:36:03 +02:00
|
|
|
|
2022-10-10 03:33:45 +01:00
|
|
|
static const game::native::dvar_t* com_logfile;
|
|
|
|
|
2022-05-22 16:36:03 +02:00
|
|
|
private:
|
2023-01-29 16:20:37 +00:00
|
|
|
static std::mutex log_file_mutex;
|
2022-08-07 11:38:06 +02:00
|
|
|
static const char* log_file_name;
|
2022-05-22 16:36:03 +02:00
|
|
|
|
2022-08-07 11:38:06 +02:00
|
|
|
static int opening_qconsole;
|
|
|
|
static int com_console_log_open_failed;
|
2022-05-22 16:36:03 +02:00
|
|
|
|
2022-08-07 11:38:06 +02:00
|
|
|
static void com_open_log_file();
|
2022-05-22 16:36:03 +02:00
|
|
|
};
|