Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions include/gelf4cplus/Gelf4CPlusAppender.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <log4cplus/helpers/stringhelper.h>
#include <log4cplus/helpers/property.h>
#include <log4cplus/tstring.h>
#include <log4cplus/spi/loggingevent.h>
#include <boost/algorithm/string.hpp>
#include <boost/unordered_map.hpp>
#include <boost/asio.hpp>
Expand Down
6 changes: 4 additions & 2 deletions include/gelf4cplus/Gelf4CPlusAppenderFactory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,12 @@ class Gelf4CPlusAppenderFactory : public log4cplus::spi::AppenderFactory
new gelf4cplus::appender::Gelf4CPlusAppender(new transport::UdpTransport(host, port), properties));
}

tstring getTypeName()
virtual log4cplus::tstring const & getTypeName() const
{
return "log4cplus::Gelf4CPlusAppender";
static tstring typeName = "log4cplus::Gelf4CPlusAppender";
return typeName;
}

};

} // namespace appender
Expand Down
4 changes: 2 additions & 2 deletions include/gelf4cplus/UdpTransport.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ class UdpTransport : public ITransport
// Build the id string using the IP, PID, and TID
std::ostringstream ss;
ss << boost::asio::ip::host_name() <<
boost::interprocess::detail::get_current_process_id() <<
boost::interprocess::detail::get_current_thread_id();
boost::interprocess::ipcdetail::get_current_process_id() <<
boost::interprocess::ipcdetail::get_current_thread_id();
m_threadId = ss.str();

// Set up the Boost Asio stuff
Expand Down