fintp_log
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
FinTP::SyslogPublisher Class Reference

publishes events to a file More...

#include <SyslogPublisher.h>

Inheritance diagram for FinTP::SyslogPublisher:

Public Member Functions

 SyslogPublisher (const string &host, const string &port="514", const string &programName="QPI")
 
 ~SyslogPublisher ()
 
void Publish (const AppException &except)
 
string formatRF3164 (const string &theMessage, unsigned int severity)
 
- Public Member Functions inherited from FinTP::AbstractLogPublisher
virtual ~AbstractLogPublisher ()
 
void setDefault (const bool def)
 
void setEventFilter (const int eventFilter)
 
int eventFilter (void)
 

Static Public Attributes

static const string CONFIG_NAME = "Log.PublisherToSyslog"
 
static const string CONFIG_HOST = "Log.PublisherToSyslog.Host"
 
static const string CONFIG_PORT = "Log.PublisherToSyslog.Port"
 

Private Member Functions

int priority (unsigned int severity, unsigned int facility=1)
 

Private Attributes

boost::asio::io_service m_Io_service
 
boost::asio::ip::udp::socket m_Socket
 
string m_ProgramName
 

Additional Inherited Members

- Static Public Member Functions inherited from FinTP::AbstractLogPublisher
static string FormatException (const AppException &exception)
 
static string SerializeToXmlStr (const AppException &except)
 
static xercesc::DOMDocument * SerializeToXml (const AppException &exception)
 
static AppException DeserializeFromXml (const xercesc::DOMDocument *doc)
 
- Protected Member Functions inherited from FinTP::AbstractLogPublisher
 AbstractLogPublisher ()
 
- Protected Attributes inherited from FinTP::AbstractLogPublisher
bool m_Default
 
int m_EventFilter
 

Detailed Description

publishes events to a file

Constructor & Destructor Documentation

SyslogPublisher::SyslogPublisher ( const string &  host,
const string &  port = "514",
const string &  programName = "QPI" 
)
explicit
FinTP::SyslogPublisher::~SyslogPublisher ( )
inline

Member Function Documentation

string SyslogPublisher::formatRF3164 ( const string &  theMessage,
unsigned int  severity 
)
int FinTP::SyslogPublisher::priority ( unsigned int  severity,
unsigned int  facility = 1 
)
inlineprivate
void SyslogPublisher::Publish ( const AppException except)
virtual

Member Data Documentation

const string SyslogPublisher::CONFIG_HOST = "Log.PublisherToSyslog.Host"
static
const string SyslogPublisher::CONFIG_NAME = "Log.PublisherToSyslog"
static
const string SyslogPublisher::CONFIG_PORT = "Log.PublisherToSyslog.Port"
static
boost::asio::io_service FinTP::SyslogPublisher::m_Io_service
private
string FinTP::SyslogPublisher::m_ProgramName
private
boost::asio::ip::udp::socket FinTP::SyslogPublisher::m_Socket
private

The documentation for this class was generated from the following files: