summaryrefslogtreecommitdiffstats
path: root/source/MCLogger.h
diff options
context:
space:
mode:
authorAlexander Harkness <bearbin@gmail.com>2013-08-10 13:40:38 +0200
committerAlexander Harkness <bearbin@gmail.com>2013-08-10 13:40:38 +0200
commite508e0975314fa37b307456a69e869b8b2e9b43a (patch)
tree1546e9223bf208bb828ccf0a1708b0b3d26ed37b /source/MCLogger.h
parentPiston head, when removed, removes the associated piston body, too. (diff)
parentLinux color redirection fixed. (diff)
downloadcuberite-e508e0975314fa37b307456a69e869b8b2e9b43a.tar
cuberite-e508e0975314fa37b307456a69e869b8b2e9b43a.tar.gz
cuberite-e508e0975314fa37b307456a69e869b8b2e9b43a.tar.bz2
cuberite-e508e0975314fa37b307456a69e869b8b2e9b43a.tar.lz
cuberite-e508e0975314fa37b307456a69e869b8b2e9b43a.tar.xz
cuberite-e508e0975314fa37b307456a69e869b8b2e9b43a.tar.zst
cuberite-e508e0975314fa37b307456a69e869b8b2e9b43a.zip
Diffstat (limited to 'source/MCLogger.h')
-rw-r--r--source/MCLogger.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/source/MCLogger.h b/source/MCLogger.h
index 0c4566400..6f7d34e66 100644
--- a/source/MCLogger.h
+++ b/source/MCLogger.h
@@ -26,11 +26,23 @@ public: // tolua_export
static cMCLogger* GetInstance();
private:
- void SetColor( unsigned char a_Color );
-
+ enum eColorScheme
+ {
+ csRegular,
+ csInfo,
+ csWarning,
+ csError,
+ } ;
+
+ /// Sets the specified color scheme in the terminal (TODO: if coloring available)
+ void SetColor(eColorScheme a_Scheme);
+
+ /// Resets the color back to whatever is the default in the terminal
+ void ResetColor(void);
+
cCriticalSection m_CriticalSection;
- cLog* m_Log;
- static cMCLogger* s_MCLogger;
+ cLog * m_Log;
+ static cMCLogger * s_MCLogger;
}; // tolua_export
extern void LOG(const char* a_Format, ...);