diff options
author | Chris Wilson <chris+github@qwirx.com> | 2009-03-24 16:55:46 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2009-03-24 16:55:46 +0000 |
commit | 39ffe290149d3f1a533a5e6e6911b0a852abc848 (patch) | |
tree | 7d68584bbf14ed12e4456ead501dcf05396a7253 /lib/common/Logging.h | |
parent | 2cdd70a034f183fb4b7926d0979650e8c3df1430 (diff) |
Add ability to specify a named log facility for syslog loggins,
requested by Kenny Millington.
Diffstat (limited to 'lib/common/Logging.h')
-rw-r--r-- | lib/common/Logging.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/common/Logging.h b/lib/common/Logging.h index 40c94a09..9bb2cf6c 100644 --- a/lib/common/Logging.h +++ b/lib/common/Logging.h @@ -202,6 +202,7 @@ class Syslog : public Logger { private: std::string mName; + int mFacility; public: Syslog(); @@ -211,6 +212,8 @@ class Syslog : public Logger int line, std::string& rMessage); virtual const char* GetType() { return "Syslog"; } virtual void SetProgramName(const std::string& rProgramName); + virtual void SetFacility(int facility); + static int GetNamedFacility(const std::string& rFacility); }; // -------------------------------------------------------------------------- @@ -260,6 +263,7 @@ class Logging } static void SetProgramName(const std::string& rProgramName); static std::string GetProgramName() { return sProgramName; } + static void SetFacility(int facility); class Guard { |