Broadcast C++ Toolkit
 All Classes Functions Variables Typedefs Enumerations Enumerator Pages
FactSet::Datafeed::LogMessage Class Reference

Public Types

enum  LogLevel {
  LOG_ALL = 0, LOG_DEBUG = 1, LOG_INFO = 2, LOG_WARN = 3,
  LOG_ERROR = 4, LOG_PANIC = 5, LOG_NONE = 6
}
 

Public Member Functions

 LogMessage ()
 Constructor. More...
 
 LogMessage (const LogMessage &other)
 Copy constructor. More...
 
LogMessageoperator= (const LogMessage &other)
 Assignment operator.
 
 ~LogMessage ()
 Destructor.
 
const std::string & get_text () const
 Gets the message text to log.
 
time_t get_time () const
 Gets the time that this message was logged as seconds past unix epoch.
 
unsigned int get_microseconds () const
 Gets the number of microseconds past the last second that this message was logged.
 
LogLevel get_level () const
 Gets the log level of this message.
 
const std::string & get_filename () const
 Gets the name of the file from which this message originated.
 
int get_line_number () const
 Gets the line number from which this message originated.
 
uint64_t get_thread_id () const
 Gets the id of the thread from which this message originated.
 

Friends

struct LogMessageImpl
 

Constructor & Destructor Documentation

FactSet::Datafeed::LogMessage::LogMessage ( )

Constructor.

Constructs a new empty log message

FactSet::Datafeed::LogMessage::LogMessage ( const LogMessage other)

Copy constructor.

Constructs a new log message with the same contents as other

Parameters
otherLogMessage to copy the contents from

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