diff options
| author | jhurst <jhurst@cinecert.com> | 2009-06-19 21:48:10 +0000 |
|---|---|---|
| committer | jhurst <> | 2009-06-19 21:48:10 +0000 |
| commit | 019da2c07073b55ffba7f939fd1ecb9c17016a11 (patch) | |
| tree | 34fd818debdaf61583f9671a070db22a7763c6e3 /src/KM_log.h | |
| parent | 4f0f1f955446335da8374da30b9618d003966a54 (diff) | |
syslog logging
Diffstat (limited to 'src/KM_log.h')
| -rwxr-xr-x | src/KM_log.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/KM_log.h b/src/KM_log.h index fdcfd13..ac56843 100755 --- a/src/KM_log.h +++ b/src/KM_log.h @@ -292,6 +292,22 @@ namespace Kumu void WriteEntry(const LogEntry&); }; + + // write messages to the syslog facility + class SyslogLogSink : public ILogSink + { + KM_NO_COPY_CONSTRUCT(SyslogLogSink); + SyslogLogSink(); + + public: + SyslogLogSink(const std::string& source_name, int facility); + virtual ~SyslogLogSink(); + void WriteEntry(const LogEntry&); + }; + + // convert a string into the appropriate syslog facility id + int SyslogNameToFacility(const std::string& facility_name); + #endif |
