home *** CD-ROM | disk | FTP | other *** search
/ Enter 2005 March / ENTER.ISO / files / fwp-0.0.6-win32-installer.exe / log.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-12-18  |  811 b   |  33 lines

  1. #ifndef __log_h__
  2. #define __log_h__
  3.  
  4. /*!
  5. \file Log.h
  6. \author Karsten Schwenk
  7.  
  8. \brief This file contains some handy functions to log the progress and flow of a game session (on screen and to a file).
  9.  
  10. */
  11.  
  12.  
  13. //! Starts the logging capability by opening a new logfile.
  14. void beginLog();
  15.  
  16. //! Ends the logging and closes the logfile
  17. void endLog();
  18.  
  19. //! Prints a log message (on screen and to the logfile).
  20. void log(char *formatString, ...);
  21.  
  22. //! Prints a warning message (on screen and to the logfile).
  23. void warn(char *formatString, ...);
  24.  
  25. //! Prints an error message (on screen and to the logfile).
  26. void error(char *formatString, ...);
  27.  
  28. //! Prints an fatal error message (on screen and to the logfile) AND quits the game!
  29. void fatal(char *formatString, ...);
  30.  
  31.  
  32. #endif    /* __log_h__ */
  33.