summaryrefslogtreecommitdiffstats
path: root/src/common/logger.h
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-08-12 19:30:31 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-08-12 19:30:31 +0200
commit146ad47e4afbf1fe82763c94c2cd2209285f869f (patch)
tree526bdbcd20655fa77b32dee18bf9debe6df10fc7 /src/common/logger.h
parent6ab1746ec97ac12d00180c951248c45b1c57bd12 (diff)
parent45a5e1e865ec02892054080e1fc0b7e7c463e9d3 (diff)
downloadcolobot-146ad47e4afbf1fe82763c94c2cd2209285f869f.tar.gz
colobot-146ad47e4afbf1fe82763c94c2cd2209285f869f.tar.bz2
colobot-146ad47e4afbf1fe82763c94c2cd2209285f869f.zip
Merge branch 'dev-graphics' into dev
CEngine object handling
Diffstat (limited to 'src/common/logger.h')
-rw-r--r--src/common/logger.h22
1 files changed, 18 insertions, 4 deletions
diff --git a/src/common/logger.h b/src/common/logger.h
index f126e52..fc43735 100644
--- a/src/common/logger.h
+++ b/src/common/logger.h
@@ -38,10 +38,12 @@
**/
enum LogType
{
- LOG_INFO = 1, /*!< lowest level, information */
- LOG_WARN = 2, /*!< warning */
- LOG_ERROR = 3, /*!< error */
- LOG_NONE = 4 /*!< none level, used for custom messages */
+ LOG_TRACE = 1, /*!< lowest level, execution tracing */
+ LOG_DEBUG = 2, /*!< debugging messages */
+ LOG_INFO = 3, /*!< information */
+ LOG_WARN = 4, /*!< warning */
+ LOG_ERROR = 5, /*!< error */
+ LOG_NONE = 6 /*!< none level, used for custom messages */
};
@@ -63,6 +65,18 @@ class CLogger : public CSingleton<CLogger>
*/
void Message(const char *str, ...);
+ /** Write message to console or file with LOG_TRACE level
+ * @param str - message to write
+ * @param ... - additional arguments
+ */
+ void Trace(const char *str, ...);
+
+ /** Write message to console or file with LOG_DEBUG level
+ * @param str - message to write
+ * @param ... - additional arguments
+ */
+ void Debug(const char *str, ...);
+
/** Write message to console or file with LOG_INFO level
* @param str - message to write
* @param ... - additional arguments