diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/common/Logging.cpp | 5 | ||||
-rw-r--r-- | lib/common/Logging.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/common/Logging.cpp b/lib/common/Logging.cpp index 7ce0dd3f..0a52fa5b 100644 --- a/lib/common/Logging.cpp +++ b/lib/common/Logging.cpp @@ -432,6 +432,11 @@ Syslog::Syslog() : mFacility(LOG_LOCAL6) Syslog::~Syslog() { + Shutdown(); +} + +void Syslog::Shutdown() +{ ::closelog(); } diff --git a/lib/common/Logging.h b/lib/common/Logging.h index 1074b7c3..3265d41d 100644 --- a/lib/common/Logging.h +++ b/lib/common/Logging.h @@ -274,6 +274,7 @@ class Syslog : public Logger virtual const char* GetType() { return "Syslog"; } virtual void SetProgramName(const std::string& rProgramName); virtual void SetFacility(int facility); + virtual void Shutdown(); static int GetNamedFacility(const std::string& rFacility); }; |