mirror of
https://github.com/DrBeef/JKXR.git
synced 2025-02-08 08:22:02 +00:00
52 lines
1.7 KiB
C
52 lines
1.7 KiB
C
/*
|
|
===========================================================================
|
|
Copyright (C) 1999 - 2005, Id Software, Inc.
|
|
Copyright (C) 2000 - 2013, Raven Software, Inc.
|
|
Copyright (C) 2001 - 2013, Activision, Inc.
|
|
Copyright (C) 2013 - 2015, OpenJK contributors
|
|
|
|
This file is part of the OpenJK source code.
|
|
|
|
OpenJK is free software; you can redistribute it and/or modify it
|
|
under the terms of the GNU General Public License version 2 as
|
|
published by the Free Software Foundation.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
===========================================================================
|
|
*/
|
|
|
|
/*****************************************************************************
|
|
* name: l_log.h
|
|
*
|
|
* desc: log file
|
|
*
|
|
* $Archive: /source/code/botlib/l_log.h $
|
|
* $Author: Mrelusive $
|
|
* $Revision: 2 $
|
|
* $Modtime: 10/05/99 3:32p $
|
|
* $Date: 10/05/99 3:42p $
|
|
*
|
|
*****************************************************************************/
|
|
|
|
#pragma once
|
|
|
|
//open a log file
|
|
void Log_Open(char *filename);
|
|
//close the current log file
|
|
void Log_Close(void);
|
|
//close log file if present
|
|
void Log_Shutdown(void);
|
|
//write to the current opened log file
|
|
void QDECL Log_Write(char *fmt, ...);
|
|
//write to the current opened log file with a time stamp
|
|
void QDECL Log_WriteTimeStamped(char *fmt, ...);
|
|
//returns a pointer to the log file
|
|
FILE *Log_FilePointer(void);
|
|
//flush log file
|
|
void Log_Flush(void);
|