diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-02-13 23:22:52 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-02-13 23:22:52 +0000 |
commit | 25b87e0d02f285fa8bacc4369f1d9251cf815a40 (patch) | |
tree | 7b28f4bf60ac11b1ec77edff528eea8741898f29 /src/log.h | |
parent | 00d7a2cee3904a5ef11b884d68b111ce2d7fd8a9 (diff) | |
download | mana-25b87e0d02f285fa8bacc4369f1d9251cf815a40.tar.gz mana-25b87e0d02f285fa8bacc4369f1d9251cf815a40.tar.bz2 mana-25b87e0d02f285fa8bacc4369f1d9251cf815a40.tar.xz mana-25b87e0d02f285fa8bacc4369f1d9251cf815a40.zip |
Now the resource manager will log a bit about images and cleanup.
Diffstat (limited to 'src/log.h')
-rw-r--r-- | src/log.h | 28 |
1 files changed, 27 insertions, 1 deletions
@@ -28,10 +28,36 @@ #include <time.h> #include <string> +/** + * Initializes log file by opening it for writing. + */ void init_log(); + +/** + * Enters a message in the log with a certain category. The message will be + * timestamped. + */ void log(const char *category, const char *log_text, ...); -void error(std::string error_text); + +/** + * Enters a message in the log. The message will be timestamped. + */ +void log(const std::string &text); + +/** + * Log an error and quit. The error will pop-up in Windows and will be printed + * to standard error everywhere else. + */ +void error(const std::string &error_text); + +/** + * Shortcut to log a warning. + */ void warning(const char *warning_text); + +/** + * Shortcut to log a status update. + */ void status(const char *status_text); #endif |