-/*
-====================
-Log_Init
-====================
-*/
-void Log_Init (void)
-{
- // Allocate a log queue
- logq_size = 512;
- logqueue = Mem_Alloc (tempmempool, logq_size);
- logq_ind = 0;
-
- Cvar_RegisterVariable (&log_file);
- Cvar_RegisterVariable (&log_sync);
-
- // support for the classic Quake option
-// COMMANDLINEOPTION: Console: -condebug logs console messages to qconsole.log with sync on (so it keeps every message up to a crash), see also log_file and log_sync
- if (COM_CheckParm ("-condebug") != 0)
- {
- Cvar_SetQuick (&log_file, "qconsole.log");
- Cvar_SetValueQuick (&log_sync, 1);
- }
-}
-
-