summaryrefslogtreecommitdiff
path: root/i/marvin/src/log
diff options
context:
space:
mode:
Diffstat (limited to 'i/marvin/src/log')
-rw-r--r--i/marvin/src/log/log.cc6
-rw-r--r--i/marvin/src/log/log.hh2
-rw-r--r--i/marvin/src/log/logger.hh4
3 files changed, 10 insertions, 2 deletions
diff --git a/i/marvin/src/log/log.cc b/i/marvin/src/log/log.cc
index 6a4f685..cd7bb32 100644
--- a/i/marvin/src/log/log.cc
+++ b/i/marvin/src/log/log.cc
@@ -52,6 +52,12 @@ Log::Log (const char *module, const char *instance)
(std::string ("log.logger.default"), "stdout")));
}
+Log::~Log (void)
+{
+ delete loggerNull_;
+ delete logger_;
+}
+
/// Crée un nouveau LogMessage.
LogMessage
Log::operator() (const char *msg, Level level/*info*/) const
diff --git a/i/marvin/src/log/log.hh b/i/marvin/src/log/log.hh
index 4e240a8..1141962 100644
--- a/i/marvin/src/log/log.hh
+++ b/i/marvin/src/log/log.hh
@@ -57,6 +57,8 @@ class Log
public:
/// Constructeur.
Log (const char *module, const char *instance = 0);
+ /// Destructor.
+ ~Log (void);
/// Crée un nouveau LogMessage.
LogMessage operator() (const char *msg, Level level = info) const;
/// Récupère le module.
diff --git a/i/marvin/src/log/logger.hh b/i/marvin/src/log/logger.hh
index d03fba7..5bb8e42 100644
--- a/i/marvin/src/log/logger.hh
+++ b/i/marvin/src/log/logger.hh
@@ -31,6 +31,8 @@
class Logger
{
public:
+ /// Empty destructor.
+ virtual ~Logger (void) { }
/// Create a logger.
static Logger *create (const std::string &loggerName);
/// Called when a message will be logged.
@@ -50,8 +52,6 @@ class Logger
protected:
/// Private empty constructor.
Logger (void) { }
- /// Empty destructor.
- virtual ~Logger (void) { }
};
#endif // logger_hh