l_log.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. ===========================================================================
  3. Copyright (C) 1999-2005 Id Software, Inc.
  4. This file is part of Quake III Arena source code.
  5. Quake III Arena source code is free software; you can redistribute it
  6. and/or modify it under the terms of the GNU General Public License as
  7. published by the Free Software Foundation; either version 2 of the License,
  8. or (at your option) any later version.
  9. Quake III Arena source code is distributed in the hope that it will be
  10. useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with Foobar; if not, write to the Free Software
  15. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  16. ===========================================================================
  17. */
  18. //open a log file
  19. void Log_Open(char *filename);
  20. //close the current log file
  21. void Log_Close(void);
  22. //close log file if present
  23. void Log_Shutdown(void);
  24. //print on stdout and write to the current opened log file
  25. void Log_Print(char *fmt, ...);
  26. //write to the current opened log file
  27. void Log_Write(char *fmt, ...);
  28. //write to the current opened log file with a time stamp
  29. void Log_WriteTimeStamped(char *fmt, ...);
  30. //returns the log file structure
  31. FILE *Log_FileStruct(void);
  32. //flush log file
  33. void Log_Flush(void);
  34. #ifdef WINBSPC
  35. void WinBSPCPrint(char *str);
  36. #endif //WINBSPC