summaryrefslogtreecommitdiff
path: root/i/marvin/src/log/log.hh
diff options
context:
space:
mode:
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"