diff options
Diffstat (limited to 'remoting/host/host_event_logger.cc')
-rw-r--r-- | remoting/host/host_event_logger.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/remoting/host/host_event_logger.cc b/remoting/host/host_event_logger.cc index f8f6d57..ca8e49a 100644 --- a/remoting/host/host_event_logger.cc +++ b/remoting/host/host_event_logger.cc @@ -13,6 +13,7 @@ #endif // defined(OS_LINUX) #include "remoting/host/chromoting_host.h" +#include "remoting/host/system_event_logger.h" namespace { @@ -27,8 +28,10 @@ void Log(const std::string& message) { namespace remoting { -HostEventLogger::HostEventLogger(ChromotingHost* host) - : host_(host) { +HostEventLogger::HostEventLogger(ChromotingHost* host, + const std::string& application_name) + : host_(host), + system_event_logger_(SystemEventLogger::Create(application_name)) { #if defined(OS_LINUX) openlog("chromoting_host", 0, LOG_USER); #endif @@ -56,4 +59,8 @@ void HostEventLogger::OnAccessDenied(const std::string& jid) { void HostEventLogger::OnShutdown() { } +void HostEventLogger::Log(const std::string& message) { + system_event_logger_->Log(message); +} + } // namespace remoting |