summaryrefslogtreecommitdiff
path: root/i/marvin/src/log/log.hh
diff options
context:
space:
mode:
authorhaller2005-11-17 12:20:34 +0000
committerhaller2005-11-17 12:20:34 +0000
commit621a1efccc170b84584dc375a225c19bd2911179 (patch)
treeeb2e3bea715c0cbfa897a87cbd119dfa2df3be08 /i/marvin/src/log/log.hh
parentda4a77ff094a0dc74414ec1de2cac08e8b7b60f4 (diff)
Modification du makefile (ca compile!!)
Prise en compte des niveaux de Log
Diffstat (limited to 'i/marvin/src/log/log.hh')
-rw-r--r--i/marvin/src/log/log.hh9
1 files changed, 6 insertions, 3 deletions
diff --git a/i/marvin/src/log/log.hh b/i/marvin/src/log/log.hh
index 387a2c4..4dbaf16 100644
--- a/i/marvin/src/log/log.hh
+++ b/i/marvin/src/log/log.hh
@@ -46,11 +46,10 @@ class Log
private:
const char *module_;
const char *instance_;
+ Level level_;
public:
/// Constructeur.
- Log (const char *module);
- /// Constructeur.
- Log (const char *module, const char *instance);
+ Log (const char *module, const char *instance = 0, Level level = info);
/// Crée un nouveau LogMessage.
LogMessage operator() (const char *msg, Level level = info) const;
/// Récupère le module.
@@ -63,6 +62,10 @@ class Log
static Level toLevel (const std::string &level);
/// Change un niveau de log en masque.
static Level toLevelMask (Level level);
+ /// Récupère le niveau de log
+ Level getLevel(void) const;
+ /// Set le niveau de log
+ void setLevel(Level level);
};
#include "log_message.hh"