home *** CD-ROM | disk | FTP | other *** search
- #ifndef __log_h__
- #define __log_h__
-
- /*!
- \file Log.h
- \author Karsten Schwenk
-
- \brief This file contains some handy functions to log the progress and flow of a game session (on screen and to a file).
-
- */
-
-
- //! Starts the logging capability by opening a new logfile.
- void beginLog();
-
- //! Ends the logging and closes the logfile
- void endLog();
-
- //! Prints a log message (on screen and to the logfile).
- void log(char *formatString, ...);
-
- //! Prints a warning message (on screen and to the logfile).
- void warn(char *formatString, ...);
-
- //! Prints an error message (on screen and to the logfile).
- void error(char *formatString, ...);
-
- //! Prints an fatal error message (on screen and to the logfile) AND quits the game!
- void fatal(char *formatString, ...);
-
-
- #endif /* __log_h__ */
-